20 required commands for Linux beginners

Source: Internet
Author: User
Tags android games

Are you planning to switch from Windows to Linux, or are you just switching to Linux? Alas !!! What am I talking about? Why are you in my world. From my past experience, I was shocked when I first started using Linux, commands, terminals, and so on. I am worried about how many commands I should remember to help me complete all the tasks. Without a doubt, online documents, books, man pages, and communities have helped me a lot, but I still firmly believe that there is an article that records how to learn and understand commands in a simple way. This inspires me to master Linux and make it easy to use. This article is the ladder to it.

1. ls command

The ls command is used to List Directory Contents (List Directory Contents. Running it is to list the content in the folder, which may be a file or a folder.

  1. Root @ tecmint :~ # Ls
  2. Android-Games Music
  3. Pictures Public
  4. Desktop Tecmint.com
  5. Documents TecMint-Sync
  6. Downloads Templates

The "ls-l" command has long listing fashion to list the contents of the folder.

  1. Root @ tecmint :~ # Ls-l
  2. Total 40588
  3. Drwxrwxr-x 2 ravisaive 4096 May 8 006 Android Games
  4. Drwxr-xr-x 2 ravisaive 4096 May 15 Desktop
  5. Drwxr-xr-x 2 ravisaive 4096 May 16 Documents
  6. Drwxr-xr-x 6 ravisaive 4096 May 16 Downloads
  7. Drwxr-xr-x 2 ravisaive 4096 Apr 30 Music
  8. Drwxr-xr-x 2 ravisaive 4096 May 9 Pictures
  9. Drwxrwxr-x 5 ravisaive 4096 May 3 Tecmint.com
  10. Drwxr-xr-x 2 ravisaive 4096 Apr 30 Templates

The "ls-a" command lists all contents in the folder, including hidden files starting.

  1. Root @ tecmint :~ # Ls-
  2. ... Gnupg. scheduler. goutputstream-PI5VVW. mission-control
  3. . Adobe deja-dup. grsync. mozilla. themes
  4. . Gstreamer-0.10. mtpaint. thumbnails. gtk-bookmarks. thunderbird
  5. . HotShots. mysql_history. htaccess. apport-ignore.xml. ICEauthority
  6. . Profile. bash_history. icons. bash_logout. fbmessenger
  7. . Jedit. pulse. bashrc. liferea_1.8. pulse-cookie
  8. . Xauthority. gconf. local. Xauthority. HGHVWW. cache
  9. . Gftp. macromedia. remmina. cinnamon. gimp-2.8
  10. . Ssh. xsession-errors. compiz. gnome teamviewer_linux.deb
  11. . Xsession-errors.old. config. gnome2. zoncolor

Note: in Linux, files starting with "." are hidden files, and each file, folder, device, or command is treated as files. Ls-l command output:

  • D (indicates a directory ).
  • Rwxr-xr-x is the permission of the user to which the file or directory belongs, the same group of users and other users.
  • In the preceding example, the first ravisaive indicates that the file belongs to the user ravisaive.
  • In the preceding example, the second ravisaive represents the file that belongs to the user group ravisaive.
  • 4096 indicates that the file size is 4096 bytes.
  • May 8 represents the last modification date and time of the file.
  • The last step is the file/folder name.

Recommended reading:

Linux Command-sleep-delay specified time

Shell programming in Linux -- basic usage of sed command

Shell programming in Linux -- basic use of the grep command

For more Linux commands, see the next page:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • Next Page

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.