Linux notes (1)

Source: Internet
Author: User

su-root; Switch to Administrator

Exit quit current Account

Init 0 Shutdown System

Init 6 Restart

Shutdown-h immediately shut down the machine

Who's Landing terminal?

WhoAmI Current account Name

Date 031511112011 change time to March 15, 2011 11:11

Cal Current Year calendar

Cal 1999 View 1999 calendar

Clear Clear

passwd change the current account password

Echo 123 Show 123

Echo 123 | passwd--stdin (Accept input) 123 as the password after the passwd changed

Command--help View command Help

ls/Browse root directory

Ls/bin Browse the Bin directory under the root directory

mkdir/a new A directory under current directory

Mkdir-p b/g new B directory and its subdirectories g

LS--help | Help for less LS paging query

ls-d b/g View all files or directories in the G directory under B directory

MV b/g b/h Change the subdirectory g directory under the B directory of the current location to the H directory

MV b/h A moves the subdirectory G directory under the B directory of the current location to the a directory at the current location

Rm-r-F a force (-f) To delete all information in the current a directory

Touch b/1.txt new 1.txt file in current B directory

Cat B/1.txt querying the content of new 1.txt files in the current B directory

chmod 777 B/1.txt Add read and Write permission to add 1.txt file under B directory

More/etc/fstab View the contents of the Fstab file under the ETC directory in the root directory by showing the remaining percentage

Tail-f/etc/fstab Real-time Dynamic monitoring View the contents of the Fstab file under the ETC directory in the root directory

echo AAA > B/1.txt Overlay AAA content into B/1.txt file

echo BBB >> b/1.txt append BBB to b/1.txt file and wrap


Linux notes (1)

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.