Day 2: Learning Linux Basic commands

Day 2: Learning Linux Basic commands

learning in Open Source

·

2 min read

Table of contents

Kunal Kushwaha

Today I have practiced Linux Basic commands as follows:

  1. pwd
  2. sudo
  3. mv
  4. ls -R
  5. tr
  6. touch
  7. cp
  8. rm
  9. df
  10. du
  11. head
  12. tail
  13. diff

Description:

1. To display the current directory:

pwd
  • Screenshot (34).png

  • As shown above, present working directory is displayed in the terminal.

2. If asked admin access then wrap the command with

Sudo

3. To move files:

mv
  • Screenshot (36).png

  • I have created a new directory testcloud , and I move file.txt from Desktop directory.

  • Screenshot (38).png

4. To list all sub files

Is -R
  • Screenshot (39).png

5. To change files format

tr
  • Screenshot (40).png

6. To create a file

touch
  • Screenshot (41).png

7. To copy file, making a duplicates

cp
  • Screenshot (42).png

8. To remove file permanently

rm
  • Screenshot (44).png

9. To display free disk space usage in human readable gigs

df -hg
  • Screenshot (46).png

10. To show size of directories

du
  • Screenshot (47).png

11. To display starting 10 lines

head
  • Screenshot (49).png

12. To display 10 lines from end

tail
  • Screenshot (50).png

13. To display explicit text

diff
  • Screenshot (51).png

Conclusion: In this blog I wrote 13 Linux commands with practicing in the cloud lab without VM.

Source: Kunal YT

Did you find this article valuable?

Support dheerajy by becoming a sponsor. Any amount is appreciated!