Linux Learning Path (i) command basic format

Source: Internet
Author: User

According to statistics Linxu can be identified in more than 3,000 commands, and we commonly used Linux basic commands around 60. Common commands are the commands we have to grasp, we need to practice more to remember, at least 3 times to knock over.

Simply divide the common commands into the following categories:

Linux Common commands

First, the command basic format

Ii. File processing commands

Third, File Search command

Iv. Help Commands

V. Compression and DECOMPRESSION commands

Six, shutdown and restart commands

Vii. Other common commands

First, the command basic format

The administrator user under Linux is not administrator, but root

~ Represents the initial login location, the initial login location is the user's home, to the administrator, it's home directory is/root, for ordinary users, home directory is in/home/username/, for User1 users, its home directory is/home/user1; for test users, Its home directory is/home/test/. You create a home directory while creating a user, and each user has their own home directory. You can use the PWD command to view your current directory.

Command format

Command  [Options]  [Parameter] Note: Individual commands used do not follow this format        when there are multiple options, you can write together the        simplify option with        the full option- a equals--all

Some commands can be without options, some commands without parameters

LS         //"list" is used to list the contents of files and subdirectories/queries directory
LS   [options]    [file or directory] option:    -    A displays all files, including hidden files, hidden files with "." Start-    L    Show details-    d    View Directory Properties-    H user-    friendly display file size-I    display inode

[[email protected] ~]# ls-al total usage 240dr-xr-x---.    Root root 4096 February 14:58 dr-xr-xr-x. Root root 4096 February 26 14:57.   Drwxr-xr-x.    3 root root 4096 November 2 13:46. ABRT-RW-------.    1 root root 1624 November 1 12:01 anaconda-ks.cfg-rw-------.    1 root root 5031 February 15:05. Bash_history-rw-r--r--.    1 root root 18 May bash_logout-rw-r--r--.    1 root root 176 May bash_profile-rw-r--r--.  1 root root 176 September 2004. Bashrcdrwxr-xr-x.   4 root root 4096 November 3 22:00. cachedrwx------.   6 root root 4096 November 3 20:16. Config-rw-r--r--.  1 root root 100 September 2004. Cshrcdrwx------.   3 root root 4096 November 2 13:45. DBUS-RW-------.  1 root root 16 November 2 13:46. esd_authdrwx------.  4 root root 4096 February 14:58. gconfdrwx------.  2 root root 4096 February 15:25. gconfddrwx------. 7 root root 4096 November 3 22:00. gnome2[file properties [reference count] [owner] [Owners group] [size] [last modified time] [file name]

First column file properties

-rw-r--r--. Altogether 10 bits, the first bit is the file type, the last nine bits each three bits each group, the first group is the owner permission, the second group belongs to the group permission, the third group other people permissions. The final point represents ACL permissions.

-File type (-file    D directory     l soft link file)   rw-         r--             r--   u owner   g belong to group      o others R read     W write     x Execute

Second column, reference count. Represents the number of times a file was called.

The owner of the third column file, the owner of the file.

Column four belongs to the group.

Column five, file size, Unit bytes. You can enter the command LS-LH to see the human size.

[[email protected] ~]# LS-LH total usage 96k-rw-------. 1 root root 1.6K November  1 12:01 anaconda-ks.cfg-rw-r--r--. 1 root root  44K November  1 12:01 install.log-rw-r--r--. 1 root root 9.8K November  1 11:59 install.log.syslog

PS: All view size commands Support-H humanized display.

Last modification time in column six.

Seventh column file name.

Linux Learning Path (i) command basic format

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.