Linux basic commands

Source: Internet
Author: User

Linux file System: Tree file system, root start, strictly case-sensitive

Ctrl+alt+t Open Terminal

Ctrl+alt+f1 from graphical interface to terminal

Ctrl+alt+f7 back to the graphical interface

PWD Displays the current working directory

The CD changes the directory and returns to the total directory in the sub-directory

LS list the current directory blue is the folder white is the file

Cd.. Return to the previous layer and can be reused, such as CDs. / .. /This way, CD./represents the current directory CD./root back to the root directory

LS View current directory

Ls-l View the details of a file in the current directory

Ls-la view hidden files, hide files with. start

If music and download are on the same level into the download back to music:

The first type: CD. Enter CD music

The second type: CD. /music

tab to complete the name, such as the folder has the beginning of D three files, type cd D after the Double tab key, you can display all the files beginning with D. If there's only one, fill this one.

Download and install the software:

Download: sudo. Apt-get Install software name

Uninstall: sudo. Apt-get remove

Folder modification permissions: sudo chmod-r

File modification permissions: sudo chmod (permissions you want to give) file name

mkdir new Folder

Touch Create a new file

Three ways to write files in Linux: Gedit/cat/vim filename. File type (equivalent to three kinds of software)

Gedit similar to TXT under Windows, various shortcut keys apply

Cat is more trouble is the need to command the interface has written a variety of commands how to use under the terminal to display the contents of the file

Vim is a bit more complicated.

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