Some Linux shell commands

Source: Internet
Author: User
Tags linux shell commands parent directory

1. Date:show current date and time.

2. Cal:calendar.

3. df:to see the current amount of free space on your disk drives.

4. Free:show The amount of the free memory (if using this command at Cygwin, CROCPS package should has been installed Fir ST).

5. Exit:to end a terminal session.

6. Pwd:print name of current working directory. The working directory is the current directory, the standing in the of the file system.

7. Cd:change directory. Symbol "/" stands for the root directory of a file system. and the 中文版 name of the symbol is leading slash.

The directory in which most of your system ' s programs is installed Is/usr/bin.

The symbol "." (dot) refers to the current working directory and the ".." (both dot) refers to the parent directory of current working directory.

The symbol "./" which stands for the current directory can omitted. "./bin" is equal to "bin"

The symbol "~" refers to your home directory.

"$ CD" Changes to your home directory.

"$ CD-" changes to the previous directory.

"$ cd ~user_name" changes to the user_name ' s home directory.

Btw:linux supports space character in a file name. But it's not a recommended to does that. (the discussion about that)

8. ls:list Directory contents.

-l option list more info of files.

There is some more options, the can is found on the help page.

If the prefix of a file is a period, it means that the file is hidden. So it's well is listed. Except appending-a (--all) option to LS.

-d option list the info of the directory itself instead of its contents.

--color colorize the file names. You can redefine LS-to-LS--color IN/HOME/YOUR_NAME/.BASHRC to make the option for always setted. (a post about this)

9.

Some Linux shell commands

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.