Experience Summary 49--linux command

Source: Internet
Author: User

Recently more busy, years later, more projects, learn more things.

It used to be a Windows Deployment project that didn't touch Linux, and now the company is using this, and that's the thing to learn.

No contact, learning is really trouble, their own virtual machine, configuration of various things, due to different versions, a lot of commands are not right, make very depressed.

Later, the unified system version starts to try various commands.

At first, even the text does not know how to edit, how to quit, very sad, behind the familiar, it is a lot of convenience.

Here are some easy-to-use commands. When you get started, you can check online

CTRL + Z, Exit command.
Cd/home Enter '/home ' directory '
Cd.. Return to the top level directory
CD/ Back to the root directory
ls to view the files in the directory
mkdir dir1 Create a directory called ' Dir1 '
Rm-f file1 Delete a file called ' File1 '
rm-rf/test/*Delete all files in the test directory
RmDir dir1 Delete a directory called ' Dir1 '
MV Dir1 New_dir Renaming/Moving a directory
CP file1 file2 Copy a file
Find/-name file1 from '/' to the root file system to search for files and directories
LS-LH display permissions, file size
Unzip-d Decompression
Zip-r Compression
Pwd Get current path
Vi Create a file or open a file
Tar/gz CZVF Packaging, ZXVF decompression
Yum install-y Unzip zipInstallation
: wq! Save exit
Ps-ef|grep TomcatQuerying Tomcat addresses
Netstat-nat View Tomcat Ports
Find/-name TomcatView the Tomcat directory
TAIL-200F Catalina.outTo view the Tomcat logs, go to the logs directory of the Tomcat directory
Ctrl+r Search for commands you've already entered
Ifconfig View IP
Vi/ect/profileConfiguring Environment variables
Source/etc/profile Restart Effective
chmod +x Jdk-6u31-linux-i586.binConfigure permissions
./jdk-6u31-linux-i586.binPerforming the installation
Cp/home/hadoop/hadoop-1.0.0.tar.gz/usrCopy files to the specified directory
MV hadoop-1.0.0 HadoopRenaming
./shutdown.sh Terminate Tomcat
./startup.sh Start Tomcat
Kill-9 Process Number Kill process
Cat View the entire contents of the text, not modifiable
Vim Highlight, can be modified, go to the dropdown to see more content
Vi No highlighting, can be modified
Cp-r Source Directory Destination DirectoryCopying files
Service Nginx ConfigtestRe-start Nginx

Experience Summary 49--linux command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.