Linux file-related commands

Source: Internet
Author: User

1.cd

(1) Function: Change the current path

(2) Format: cd[path] ex:cd/document/

(3) Description: CD./indicates the current path CD. /indicates Upper path

2.ls

(1) Role: Listing directory and file information

(2) Format: LS [option] [file] ex:ls-l indicates the details of all files in the current directory are listed

(3) Description: If you want to display. Start with a hidden file that can be used only with-a

3.cat

(1) Function: Connect and display information about one or more of the files specified

(2) Format: Cat [Options] file 1 file 2 ... ex:cat-n hello1.c hello2.c can output all the contents of files 1 and 2, including blank lines

(3) Description:-n is output to all rows starting with the first line-B and-n are similar, except that blank lines are not displayed

4.cp

(1) Role: Copy files to the specified directory

(2) Format: CP [option] The original file or directory destination file or directory ex:cp-a./Copy all files under the./my/why to the current directory

5.chmod

(1) Role: Change the access rights of the file

(2) Format: chmod [options] octal permissions file ex:chmod 777 *

(3) Description: Use chmod must have root authority

Format R-w-x (R for Read, W for write, X for execution)


Binary rwx

Octal

corresponding permissions

Binary rwx

Octal

corresponding permissions

000

0

Does not have any permissions

001

1

can only perform

010

2

Write only

011

3

Write-Only and executable

100

4

Read-only

101

5

Read-Only and executable

110

6

Readable and writable

111

7

Readable writable Executable


6 , modify Volume

First look at all the settings under the Alisa driver
amixer Contentsto modify the values commandAmixer Cset XXXX (the name to be set, Numid\iface\name) XX (the value to set)
7. View process Ps-aux 8, end a process kill XX (process number) 9, request IP address UDHCPC->enter

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