Day 3 : Basic Linux Commands Part-2.

Day 3 : Basic Linux Commands Part-2.

Here I have completed the task related to Linux commands.

Day 3 Tasks:

Basic main command

  • touch <filename> -> It is used to create a new file.

touch

  • xdg-open <filename> -> It opens the file in a text editor.

xdg-open

  • cat -> It prints out the standard output present in the file.

cat

cat devops

  • chmod -> It is used to change the permission of a file or directory.

chmod

  • history -> It is used the check the command history log in the Linux terminal.

history

history1

  • rmdir -> It is used to remove the directory or folder.

rmdir

  • head -> It shows the output of the header part.

  • head -n 3 -> It will show starting 3 lines.

head

  • tail -> It shows the output of the footer part.

  • tail -n 3 -> It will show the ending 3 lines.

tail

  • diff -> It is used to find out the difference between two or more files when there is a lot of content in it.

diff


Happy Learning :)