Linux Basic Command Summary

Source: Internet
Author: User

Delete User

Useradd User Name

Userdel User Name

passwd Password

Switch users

Ctrl+alt+f2

Get root privileges Su-root

Day Date Calendar cal

Date Modified on date month of year (Root permission)

Init 0 shutdown init 6 restart

PWD View Current Location

/ represents the root directory

File directory additions and deletions to search

Add directory mkdir/directory name/directory name

Delete directory RM/directory name/directory name

Add File touch/file name

Delete file rm/file name

Selectively delete directories (that is, delete all directories after *) RM-RF/filename/*/file name

RM-RF is mandatory delete command (use sparingly)

move (change) files or directories

MV/filename/file name 2

MV/directory Name/directory Name 2

querying a file or directory

root directory query LS/

File query under directory LS/file name

View File contents

Cat file name (fullscreen view)

Less file name (colon in lower left corner, can be paged)

More file name (lower left corner, can enter to view)

Head file name (default to view first 10 rows, customizable lines)

Tail file name (the default is to view the 10 rows, the number of rows can be customized)

Tail-f file name (can listen for new content)

Linux Basic Command Summary

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.