Ubuntu Linux Terminal Command Learning (one)

Source: Internet
Author: User
Tags readable

First, view directory: LS (list)

LS lists the current directory file (excluding hidden files)
Ls-a list current directory files (including hidden files)
Ls-l list the files in the current directory for more information

Second, switch directory: CD (changedirectory)

Cd.. Back to the top-level directory of the current directory
CD-Back to the same directory
CD ~ or CD back to the current user's host directory

Iii. Creating a directory: mkdir (makedirectory)

mkdir directory name Create a directory

Iv. rmdir (removedirectory)

RmDir Empty directory name Delete an empty directory

V. RM (ReMove)

RM FileName File name Delete a file or multiple files
RM-RF non-empty directory name delete everything under a non-empty directory

VI, MV (MOVE)

MV Road Warp/File/path/file movement relative to the path of the file to the absolute path
MV FileName New name renamed in current directory

Vii. Copying files/directories: CP (copy)

CP (source file or directory name) (destination directory or file name)

The cp-r command can copy any directory you specify (note: Include files and subdirectories in that directory)

Viii. Find Files/directories: Locate (file or directory name)

Ix. PWD Displays the current directory, PWD = Print working directory

X. DF Display file system spatial information

Df-h using M and G to display file system spatial information-H means human-readable

Xi. du displays spatial usage information for a directory

Du-sh/media/floppy-s meaning summary-h meaning human-readable

12, Ifconfig display System network

13, man shows the manual of a command

14. Switch to root user, enter "sudo-i" or "sudo su-", Exit "Exit"

Ubuntu Linux Terminal Command Learning (one)

Related Article

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.