Linux Learning notes and assignments 1

Source: Internet
Author: User

Learning environment: CentOS under Virtual machine

command to shut down Linux system init 0

How to switch between virtual terminals: Ctrl + ALT +[F1~F6]

Clear screen Clear or ctrl+l

Stop Ctrl + C

Man [command] View the command's reference manual

[command]--help get help (same man)

Common Commands and Demos:

    • Useradd
    • passwd
    • Su

    • Date
    • Aa.

    • Ls

    • Cd
    • Pwd

    • Mkdir
    • Touch
    • Cp
    • Rm

Summary and supplement:

LS     displays all files and folders in the current directory
CD /root/Desktop switch to the desktop if you do not know the full name of the folder to open or long, you can press the TAB keyboard Auto-completion, such as: CD/ R + TAB, the system automatically help us into the/ROOTCD. (Next space plus two points) return to the previous level of the directory PWD display the current directory path mkdir Test Create folder Touch new.txt Create file cp nwe.txt new2.txt Copy the New.txt file under the current folder new2.txtcp new.txt /root/Desktop will new.txt copy to/root/Desktop directory rm New.txt Delete new.txt file rm- r Test Delete Test directory (including all files under directory) RM -RF Test Delete Test directory (do not delete every file reminder in directory) MV New.txt. Move the New.txt file to the top-level directory (note the two points at the end) MV New.txt /root/Desktop/ move new.txt files to the desktop

MV New.txt new2.txt renamed New.txt to New2.txt


2016.11.09

Linux Learning notes and assignments 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.