Basic Linux knowledge

Source: Internet
Author: User
1. log on to the graphical logon interface and text logon (modify logon mode,/etc/inittab. window X. open the terminal in the graphic interface. 3. shell enters the shell through the terminal to deal with the system kernel 4. console, Switch method, ctrl + alt + F1 ~ F75. common commands da

1. user logon

Graphical logon interface and text logon (modify logon mode,/etc/inittab)

 

2. X window. open the terminal on the GUI

 

3. Shell

Access the shell through the terminal to deal with the system kernel

 

4. console, Switch method, ctrl + alt + F1 ~ F7

 

5. common commands

Date view date and time

Whoami view current user

Passwd change password

Reboot restart

Clear screen

Man command: View instructions, Press q to exit, press enter next line, press space to flip the page, or pageUp, pageDown

 

6. vim editor

Vimwelcome: creates a new welcome.txt file.

Common operations:

I enter the insert mode

: W writes data to the disk

: Wq write and exit

: Q! Exit and do not save

: Help built-in help

 

7. browse the file system

1) ls to view files

List folder content (in blue)

Ls-a displays all directories and files (including hidden files)

Ls-l displays all directories and files including their permissions

 

2) important folders:

/Boot kernel and boot

The/home directory records user files, such as/home/myuser

 

3) domain name resolution

Linux server URL is case sensitive

 

4) path

Absolute path

Relative path

Pwd to view the current location

 

5) change the Directory

Cd .. back to the upper level

Cd.../returns the previous level

Cd-return to the last Directory

Switch cd to the user's home directory

 

8. create a file

1)

Create a folder using mkdir

Mkdir-p: create a folder (including the parent folder)

-V display information

 

2)

Toucha {1 .. 9} txt batch create files (regular expression)

 

3)

Delete files

Rmdir remove folder (empty)

Rma *-f force batch delete

Rm-r: delete files in the folder and its directory.

Rm-f force to delete a file

Related Article

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.