linux–1– simple command from zero single row

Source: Internet
Author: User
Tags clear screen create directory

linux–1– simple command from zero single row

Posted In:linux

Single row linux–1 from zero

A simple Linux command:

1. Forget root password:

Press any key when reading seconds to enter –e–↓ Select the second –e–1

–b– command: passwd carriage return – Enter a new password –reboot

2, modify the user password:

Open Terminal –passwd tanzhou– new password

3. Change the root password:

Open Terminal –passwd– New password

4. Switch User: SU user name

5, switch to the root user: su–

6. Shutdown: shutdown-h now

7. Restart: Shutdown-r now

8. View directory structure: LS

Ls-l Long mode

Ls-1 One line

Ls-a all included hidden files

Size of the Ls-s file

Ls-sh file with People's reading habits

Ls-la Multiple options

9. Display directory: PWD

10, clear screen: Clear

11. Dates: Date

Date +%y Year

Date +%y Year

Date +m minutes

Date +%m Month

12. Calendar: Cal Calendar

Cal 2012

Cal 12 2012 [Month, year]

13. Calculator:

BC Calculator

1/3

Set the precision; scale = 4

Quit quitting

14. Create File: Touch xx

^xx^yy

15. View History of History:

! Historical numbers Quick Call

16. Delete Files: rm-f XX

RM-RF XX Folder

17. Create directory (folder): mkdir directory Name

18, wearing a User: AddUser user name



Second, quick operation

Ctrl + A begins ctrl+e last

Ctrl +-> ctrl+<-Mouse to move a word

Ctrl+u Delete to the beginning of the cursor

Ctrl+k Delete to the end of the cursor,

Quickly call the last parameter by pressing esc+.

Quick Paste (Select all + Intermediate rollers)

CTRL + C End current

Ctrl+d= (exit;)

Ctrl+shift+t Fast Open Terminal

Ctrl+shift+pgup last tab page

CTRL+SHIFT+PGDN next tab page

Ctrl+d Close terminal = Exit

Third, help command

1, Whatis (need to enter Makewhatis to open the Help document before using Whatis)

Example: Whatis pwd

2, Help

Example: Ls–help (LS usage)

Date +%y

3, man

Example: Man passwd

/keyword highlighting query keywords

4. Info

linux–1– simple command from zero single row

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.