Linux Shell Basic Command

Source: Internet
Author: User

Learning basic Linux Commands
Command Description

$ ls

This command was used to check the contents of
The directory.

$ pwd

This command was used to check the present
Working directory.

$ mkdir Work

We'll work in a separate directory called
Work on our home directory. Use the This command
To create a new directory called
Current folder.

$ CD Work

This command would change our working
Directory to the newly created directory work.

$ pwd

This command can is used to verify whether
We moved to the expected directory.

$ Touch hello.sh

This command was used to create a new empty
File called hello.sh in the current folder.

$ CP hello.sh bye.sh

This command was used to copy one file into
Another file.
This would copy hello.sh as bye.sh.

$ mv bye.sh welcome.sh

This command was used to rename a file. This
Would rename bye.sh as welcome.sh.

$ ll

This command would display detailed
Information about files.

$ mv welcome.sh. welcome.sh
$ ls

Let's see some magic. Rename the file using the
MV Command and the run the LS command.
Now, the LS command won't display our
File. welcome.sh. That file gets hidden. Any
FileName or directory name starting with "."
(dot) becomes hidden.

$ ls-a This command was used to see hidden files.
$ rm. welcolme.sh This command was used to delete the file.

Linux Shell Basic Command

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.