There are too many commands under Linux, here to temporarily organize a part, here we do not list specific parameters for practical purposes.
Part 1: File Operations
ll View directories and files in long format
ls View directories and files in short format
df -hView disk Size information
mkdir dir_name create folder
rm -rf file_name delete directory
rm -f file_name delete file
mv file path move file file Go to the path directory
cp file path Copy the file file to the path directory
cat file View the contents of the file
vi/vim file View the file
Pwd View the current file system path
uniq a.txt > b.txt Deduplicate a.txt and write the result to b.txt
sort a.txt > B.txt Write the result of a.txt to b.txt
uniq a.txt|
Sort > b.txt For a.txt, first re-order and then write the result to b.txt
wc -l a.txt Count the number of a.txt lines
find path - Name file Look for the file named file in the path directory, you can use * as a wildcard
find path -name file_name |
Xargs grep -nH content Finds the specified content in the specified file
Part II: Process Information
ps -aux View Process Information
ps |
Grep java lookup process
kill -9 pid kill process according to process number
killall -9 java kill all java process
free view memory
Top Viewing CPU Information
Part III: rpm包管理
rpm -qa Listing all rpmware
rpm -qa |
Grep name Check if the software named name is installed
Part 4: Restart Shutdown
reboot Restart
shutdown -h now Shutdown
Part 5: Other Sections
passwd Change Password
& Background Startup Process
service network restart Restart Network Service
After reinstalling Win7, I have never tried to install Linux again, occasionally playing, an
What should I do if the Ubuntu system Grub fails? Many computer users think of reloading: Grub, howe
one, top command 1. Function The top command is used to display the program process in execution,
Basic minimalist directory file after successful production First, the basic boot process of the s
CentOS6.4 yum command to install php5.2.17
Linux network card configuration detailed
How to use rsync for data backup under Linux
How to install JDK graphic parsing in Ubuntu
Three main package installation methods under redhat system
Vim is not common but very practical command skills
What are the Linux file management and bash features?
Vi editor paste copy cut function under Linux
Display Adjustment and Peripheral Identification
Solution for MAC to slow down after installing PD VM
Win10 system program icon shows abnormality how to do
How to find the "My Documents" icon on the win10 desktop?
Linux prompt bash:command not found
Windows server 2008 RAS+RADIUS
Simple production of your Win10 exclusive avatar website
Windows7 system how to uninstall IE10 browser to avoid white screen phenomenon