Linux commands – How to use linux command

System information
Arch displays the machine‘s processor architecture (1)
Displays the processor architecture of the machine (2)
Display the kernel version you are using
Show hardware system components(SMBIOS/DMI)
/Dev/hda list of schema properties of a disk
/Dev/sda perform a test on a disk read operation
/Cpuinfo show information CPU info
/Interrupts indicates that the break
/Meminfo check memory usage
/Swaps shows which swap in use
/Version displays kernel version
/NET/Dev displays the network adapter and statistics
/Mounts displays the loaded file systems
List PCI devices
Display USB devices
Date shows the date system
CAL 2007 2007 year calendar
Set date and time date 041217002007.00the day when years. seconds
To save the modified BIOS
Shutdown (shutdown, restart, and log out of the system)
Now shut down the system (1)
Init 0 closed systems (2)
Telinit 0 closed systems (3)
Hours:minutes and scheduled closing system
Cancel scheduled closing system
Now restart (1)
Reboot restart (2)
Logout log out
File and directory
To the ‘/home’ directory
cd .. Return to the previous directory
cd .. /.. Return two-level table of contents
CD into individual home directories
CD ~User1 enter a person‘s home directory
The directory where CDreturns the last
Pwd displays the work path
Ls view files in directories
View files in directories
Show details of files and directories
Show hidden files
Ls *[0-9]* displays file names and directory names contain numbers
Starting from the root directory of the tree display file and directory tree structure (1)
Lstree display the files and directory tree structure starting from the root directory (2)
Mkdir create a Dir1 directory called ‘dir1’
Mkdir Dir1 Dir2 created two directories
/Tmp/Dir1/Dir2 creates a directory tree
File1 to delete a file that is called ‘file1’
Rmdir Dir1 to delete a directory named ‘dir1’
Dir1 to delete a directory named ‘dir1’ and delete the content
Dir1 Dir2 remove two directories and their contents
MV Dir1 new_dir, rename, or move a directory
CP file1 file2 copies a file
cp dir/* . Copy all the files to a directory the current working directory
cp -a /tmp/dir1 . Copy a table of contents to the current working directory
Dir1 Dir2 to copy a directory
File1 lnk1 you create a soft link to a file or directory
LN file1 lnk1 you create a physical link to a file or directory
0712250000 file1 modify timestamp of a file or directory(YYMMDDhhmm)
file file1 outputs the mime type of the file as text
Lists known encodings
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)