Basic Linux Commands

ยท

1 min read

๐Ÿ“„ View what's written in a file.

๐Ÿ”’ Change the access permissions of files.

#chmod 755 vishal

The 755 means the owner has full access to read, write, and execute the file, while the group members and all other users have read and execute permissions but no write permissions.

๐Ÿ•ต๏ธโ€โ™‚๏ธ Check which commands you have run till now.

๐Ÿ—‘๏ธ Remove a directory/ Folder.

๐ŸŽ Create a fruits.txt file and view the content.

โž• Add content in devops.txt (One in each line) - Apple, Mango, Banana, Cherry, Kiwi, Orange, Guava.

๐Ÿ” Show only the top three fruits from the file.

๐Ÿ”š Show only the bottom three fruits from the file.

๐Ÿ“„ Create another file Colors.txt and view the content.

โž• Add content in Colors.txt (One in each line) - Red, Pink, White, Black, Blue, Orange, Purple, Grey.

๐Ÿ” Find the difference between fruits.txt and Colors.txt file.

The diff command in Linux is used to compare two files line by line and display the differences between them

ย