Linux basic commands

Source: Internet
Author: User
Tags scp command

Here are some of the notes I learned about Linux, as summarized below

First of all to popularize common sense: DNS is used to resolve the domain name, the URL port default is 80, can not write, localhost is 127.0.0.1, if it is root, the prompt is: #, the average user is: $;

Common Commands under Linux:

1. Check the current system login user, you can enter the WhoAmI command, if you want to see the total number of users under the system, can be viewed under the/home path;

2. To view the current system IP information, you can enter IP A,

3. Modify the temporary IP address, you can enter the Ifconfig eth0 169.254.*.*, but the restart after the failure;

4.netstat-nlpt|grep 80 to see if the port number is occupied;

5.ps-ef|grep MySQL ps-ef find process grep displays matching lines in the file; Ps-ef|grep httpd |grep-v "grep"-V means to exclude the grep process; PS is instantaneous, top is dynamic

6. Environment Variables When modifying environment variables, remember to write $PATH:, I was on the Linux installed Tomcat when I forgot to write $path:, causing the system to start an error,

7.cd.. Go back to the top level directory, CD. /..  /.. Go back to Level three, CD-go back to the last operating directory and know that these commands are much more convenient when you switch directories back and forth.

The 8.SCP command is a copy of the transfer file between two machines, which refers to a Danale blog to introduce, http://www.cnblogs.com/peida/archive/2013/03/15/2960802.html personal feeling written very good!

9. File permission Description: Dr-xr-x---D is a directory, if this location is-, indicates that the file ' R-x ' represents the user's rights, the second ' R-x ' represents the permissions of the group, the third group '---' represents the rights of other users, you can use the chmod command to empower. Personal feeling chmod command of the digital way more convenient, [n][n][n] r=4 w=2 x=1, such as rwx=4+2+1;

10.linux Learning method is more practice, more real exercise, the common command to remember, more practice more summary to progress!

11. As a novice to learn Linux, be sure to remember to modify the configuration file to be backed up, remember!

Linux basic commands

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.