Day 3 - Basic Commands of Linux

Day 3 - Basic Commands of Linux

ยท

1 min read

Table of contents

No heading

No headings in the article.

  1. ls -> Used to list files and directories

  1. ls -al -> Formatted long listing with hidden files.

  1. pwd-> Show current directory.

  1. cd(change directory) -> Change to home

cd.. -> one step bacward

cd ../../.. -> jump 3 step backward

  1. mkdir -> Create directory.

Create multiples directory.

Creating directory with space in name.

make parent directories

  1. touch -> touch command is a way to create empty files. You can update the modification and access time of each file with the help of touch command.

stat -> see the access and change time of your file, you need to use stat command.

  1. cat -> cat command can be used to display the content of a file.

cat > filename - Create file (ctrl+d for save content)

cat >> filename - Add content in existing file

cat oldfile > newfile - To copy content from older to new file.

  1. tac -> To see content in bottom to top.

  1. Execute multiple commands in one line.

Thanks for reading to the end; I hope you gained some knowledge.โค๏ธ๐Ÿ™Œ

- PARAMVEER SINGH :)

ย