Linux Command - jsonamit/aws GitHub Wiki

1. Unrar file

unrar x volname.part001.rar /dir1/*

2. For checking dir

ls

3. If you want to make zip

zip -r zip_name.zip folder_name

4. For unzip file

unzip zip_file_name.zip

5. If you want to check hidden files

ls -a

6. For making dir

mkdir dir_name

7. For remove dir

rmdir dir_name

8. If you have to create file

nano

after type nano press enter then write your content.after typed all content press ctrl+x then press y. after verse give the file name with extension.

9. The cp and mv commands

cp existing-file-name new-file-name

10. cat Command

cat <file name>

11. rename Command

rename 's/old-name/new-name/' files

12. grep Command

command | grep searchWord cat marks.txt | grep 10

13. gzip Command

The gzip command is used to truncate the file size. It is a compressing tool. It replaces the original file by the compressed file having '.gz' extension.

gzip file1 file2 file3

14. gunzip Command

The gunzip command is used to decompress a file. It is a reverse operation of gzip command.

gunzip file1 file2 file3

15. exit Command

the exit command is used to exit from the current shell. It takes a parameter as a number and exits the shell with a return of status number.

exit

16. ssh Command

Linux ssh command is used to create a remote connection through the ssh protocol.

ssh user_name@host(IP/Domain_name)

17. Directory permissions in Linux

chmod: (Changes the mode, or security permissions, of files)

chown: (Changes the ownership of files)

chgrp: (Changes the group of files)

Screenshot 2023-12-06 at 11 08 06 PM
⚠️ **GitHub.com Fallback** ⚠️