3. Basic commands

Source: Internet
Author: User

(1) Switch the graphical interface to the character terminal: Ctrl+shift+alt+f2~f6

Graphical interface opens a terminal command: ctrl+shift+t

ALT + number keys switch at different terminals

ALT+F4 Closing the terminal

ctrl+shift++ Magnification Terminal resolution

Ctrl+-Reduced resolution

(2) LS action: see what files are in the current directory

Ls-l equivalent to LL show details

Ls-a Show hidden files

Ls-h enhances readability,

Ls-d viewing the directory (without viewing the contents)

What does the system different colors represent:

Light Color--link, dark color--Directory, yellow--device file, red--compressed file, green-executable file, black--file.

(3) PWD View your current directory

(4) CD switch directory

cd~, CD back to the user's home directory CD-Go back to the previous directory

(5) View hardware time (BIOS time: Hwclock View system time: Date Griniz Observatory and date 8 hours

Modified: date-s 2017-9-12;d ate-s 22:00

(6) Display time format: Date +%f & date +%y-%m-%d & Date ' +%y-%m-%d%h:%m '

(7) View Help information plus parameter-H or--help

Help ~ View Internal command Assistance information

~help viewing external command Help information

The difference: The internal command is actually part of the shell program, resides in memory, the external command is a utility part of the Linux system, it is called memory when needed, not included in the shell

You can use the type command to distinguish internal commands from external commands

(8) Shutdown command: Shutdown-h + time, init0, halt

Restart command: Shutdown-r + time, INIT6, reboot. Cancel Shutdown-c or CTRL + C

(9) Init

0 shutdown mode, 1 single user mode, 2 multi-user mode, 3 text mode, 4 system not used, battery utility after operation, 5 graphics mode, 6 restart mode

3. 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.