[vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”System Information” tab_id=”1395107047-1-43″][vc_column_text]Arch display processor architecture(1)
Uname -m display processor architecture(2)
Uname -r display is using the kernel version
The hardware system component of the dmidecode -q display – (SMBIOS / DMI)
hdparm -i /dev/Structure characteristics of HDA listed a disk
hdparm -tT /dev/SDA execute the test of read operation on the disk
cat /proc/Cpuinfo CPU info information
cat /proc/Interrupts display interrupt
cat /proc/Meminfo check memory usage
cat /proc/Swaps shows what swap is used
cat /proc/Version displays the version of the kernel
cat /proc/net/Dev network adapter and statistics
cat /proc/Mounts displays the file system has been loaded
Lspci -tv PCI equipment list
Lsusb -tv display USB equipment
Date display system date
Cal 2007 shows the 2007 Calendar
Date 41217002007 set the date and time of &ndash on time. Second year
Clock -w will be time to save changes to BIOS[/vc_column_text][/vc_tab][vc_tab title=”Changing System Status” tab_id=”1395107047-2-22″][vc_column_text]Shutdown -h now closing system(1)
The init 0 closed system(2)
The telinit 0 closed system(3)
shutdown -h hours:minutes & According to the scheduled time to shut down the system
Shutdown -c cancelled according to the scheduled time to shut down the system
Shutdown -r now restart(1)
Reboot restart(2)
The logout registration[/vc_column_text][/vc_tab][vc_tab title=”Files and directories” tab_id=”1395108398923-2-7″][vc_column_text]cd /home enter to directory ‘ / home’
cd .. go back one level
cd ../.. go back two levels
cd go to home directory
cd ~user1 go to home directory
cd – go to previous directory
pwd show the path of work directory
ls view files of directory
ls -F view files of directory
ls -l show details of files and directory
ls -a show hidden files
ls *[0-9]* show files and directory containing number
tree show files and directories in a tree starting from root (1)
lstree show files and directories in a tree starting from root (2)
mkdir dir1 create a directory called ‘dir1’
mkdir dir1 dir2 create two directories simultaneously
mkdir -p /tmp/dir1/dir2 create a directory tree
rm -f file1 delete directory called ‘file1’
rmdir dir1 delete directory called ‘dir1’
rm -rf dir1 remove a directory called ‘dir1’and contents recursively
rm -rf dir1 dir2 remove two directories and their contents recursively
mv dir1 new_dir rename / move a directory
cp file1 file2 copying a file
cp dir/* . copy all files of a directory within the current work directory
cp -a /tmp/dir1 . copy a directory within the current work directory
cp -a dir1 dir2 copy a directory
ln -s file1 lnk1 create a symbolic link to file or directory
ln file1 lnk1 create a physical link to file or directory
touch -t 0712250000 file1 modify timestamp of a file or directory
– (YYMMDDhhmm)
file file1 outputs the mime type of the file as text
iconv -l list all known coded character sets
iconv -f fromEncoding -t toEncoding inputFile > outputFile creates a new from the given input file by assuming it is encoded in fromEncoding and converting it to toEncoding.
find . -maxdepth 1 -name *.jpg -print -exec convert “{}” -resize 80×60 “thumbs/{}” \; batch resize files in the current directory and send them to a thumbnails directory (requires convert from Imagemagick)[/vc_column_text][/vc_tab][vc_tab title=”Mount a file system” tab_id=”1395108471080-3-4″][vc_column_text]mount /dev/hda2 /mnt/Hda2 mount a hda2 disk – identify the directory ‘ / mnt/hda2′ already exists
umount /dev/Hda2 uninstall a hda2 disk – first from the mount point &lsquo / mnt/hda2′ exit
fuser -km /mnt/Hda2 when the device is busy when forced to unload
umount -n /mnt/Hda2 unloading operations without writing /etc/mtab files – when the file is read-only or when the disk is full of very useful
mount /dev/fd0 /mnt/Floppy mount a floppy disk
mount /dev/cdrom /mnt/CDROM mount a CDROM or dvdrom
mount /dev/hdc /mnt/Cdrecorder mount a CDRw or dvdrom
mount /dev/hdb /mnt/Cdrecorder mount a CDRw or dvdrom
mount -o loop file.iso /mnt/CDROM mount a file or an ISO image file
mount -t vfat /dev/hda5 /mnt/Hda5 mount a Windows FAT32 file system
mount /dev/sda1 /mnt/Usbdisk mount a USB disk or flash memory device
mount -t smbfs -o username=user,password=pass //WinClient/share /mnt/Share mount a Windows network sharing[/vc_column_text][/vc_tab][vc_tab title=”Disk Space” tab_id=”1395108540948-4-9″][vc_column_text]DF -h display mounted partition list
ls -lSr |More in size order files and directories
Du -sh dir1 to estimate the directory ‘ dir1′ have used disk space’
du -sk * | Sort -rn in size as the basis and are displayed in file and directory size
rpm -q -a –qf ‘%10{SIZE}t%{NAME}n’ | sort -k1,Based on the size of 1n in turn show the installed RPM package space (Fedora, RedHat system)
dpkg-query -W -f=’${Installed-Size;10}t${Package}n’ | sort -k1,Based on the size of 1n to indicate the use of installed DEB package space (Ubuntu, Debian system)[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]
Leave a Reply
You must be logged in to post a comment.