Simple command operation of linux operating system:
1. When the linux system can connect to the Internet, install the software and operate
yum install Software name
such as: install wireshark software (main program: yum install wireshark
graphical interface: yum install wireshark-gnome) Can.
2. View the local ip
login server in the linux system and enter the ifconfig command
3. The linux system changes the directory command
cd /home/NS2 Enter the NS2 directory under the home directory
cd .. Return to the previous level
ls to view the files and folders in the current directory
mkdir test mkdir Folder name Create a folder
rmdir test in the current directory Delete the empty folder, if you can't delete the content
vi Edit the file After installing the software, you can also use vim After entering, you need to press i again to edit
Esc Exit editing and then enter: wq Save ( colon+w+q)
: q! Quit the file colon+q+!
4. Compression and decompression of .tar.gz files under linux
Compression command:
command format: tar -zcvf compressed file name.tar.gz compressed file name
You can switch to the current directory first. Both the compressed file name and the compressed file name can be added to the path.
Decompression command:
Command format: tar -zxvf Compressed file name. tar.gz
The decompressed file can only be placed in the current directory.
Other decompression
tar –xvf file.tar //decompression tar package
tar -xzvf file.tar.gz //decompression tar.gz
tar -xjvf file.tar.bz2 //decompression tar.bz2
tar –xZvf file.tar.Z / /decompress tar.Z
unrar e file.rar //decompress rar
unzip file.zip //decompress zip
5. Simple operation of Linux server publishing project
ps -ef|grep tomcat Find the process in tomcat
kill -9 5708 Turn off the 5708 process
cd /home/xfapp/apache-tomcat-6.0.39-website/bin Find the bin file
sh startup.sh Restart the server and start the startup.sh file
linux simple command operation
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326757785&siteId=291194637
Recommended
Ranking