The LS command and the CD command of the Linux command

Source: Internet
Author: User

Ls

- L : Long Format

File type: the

              - : Normal file (f)

D: Catalog Files

B: block device files (blocks)

C: character device files (character)

L: Symbolic Link file (symbolic Linkfile)

P: command Pipe file (pipe)

S: socket file (socket)

File permissions: 9-bit, every 3-bit group, each group: rwx (Read, write, execute), r--

Number of hard links to files

owner of the file

Genus Group of files

File size (size), in bytes

timestamp (timestamp): Last Modified time

access: access

Modified: Modify, the file content has changed

change: change,metadata, meta data

- H : Do unit conversions

-A : Show hidden files that begin with.

         . represents the current directory

         .. represents the parent directory

-A

- D: Show directory itself properties

-i:index node, inode

- R: Reverse Display

- R: recursive (recursive) display

Cd:change directory,
1.Name: CD
2. Objects used: All Users
3. Command format: CD [DirName] (CD and directory separated by spaces)
4. Function: Togglecurrent directoryTo DirName.
5. Usage Examples:
[[Email protected]/]$ CD/
[[email protected]/]$ ls
Bin Dev Home lost+found mnt proc sbin SRV tmp var
Boot etc Lib media opt root selinux sys usr
[Email protected]/]$ Cd/boot
[[email protected] boot]$ ls
config-2.6.27.5-117.fc10.i686 Lost+found
EFI system.map-2.6.27.5-117.fc10.i686
Grub vmlinuz-2.6.27.5-117.fc10.i686
Initrd-2.6.27.5-117.fc10.i686.img
[Email protected] boot]$
6.linux CD command Use tips:
The CD enters the user's home directory;
CD ~ Enter the user's home directory;
CD-Returns the directory where the directory was before it was entered;
Return to the parent directory (ifcurrent directoryis " /" and then "/"; "..." After execution The meaning of the parent directory);
Cd..  /.. Return to the top level two directory;
CD!$ Use the parameters of the previous command as CD parameters.
CD command: Toggle current directory to other directories, such as entering/etc directory, then execute CD/ETC
CD/: The Slash "/" in the Linux system represents the root directory. CD/, enter the root directory.
The CD ~ command is to enter the user's home directory on the system, such as the XZ user, to enter the/ROOT/XZ directory.

Home directories, home directories, home directory

CD ~username: Enter the home directory for the specified user

CD-: switch back and forth between the current directory and the previous directory


This article from "Peng Brother's Blog" blog, declined reproduced!

The LS command and the CD command of the Linux command

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.