Sunny OS
Sunny OS
• This command can also be used to create a hidden folder just add
(.) in starting.
3. dir :-
• dir command in Linux is used to list the contents of a directory.
4. cd :-
• This command is used to change directory.
5. rm :-
• The rm command is used to delete (remove) files or directories.
◼ This command can also be used to create a file with text in it.
8. touch :-
• This command is used to create new file
• If the file already exists this command will update the timestamp of
the file
• touch command can also be used to create a hidden file just start
the name with (.).
10. cat :-
• This command is used to insert text in any file and then print the
content of file.
• cat command can also be used to show contents of multiple files.
• If we use (-n) option with command then we can get number of lines
in a file
11. ls :-
• This command is used to list directory contents.
• -a option is used to view all hidden files that one starting with .
12. sort :-
• It is used to sort lines of a file numerically, alphabetically or in reverse
order.
14. cp :-
• This command is used to copy file.
• This command can also be used to create a new file and copy the data
to that file
15. head :-
• This command can be used to print the starting 10 lines(default) of a
file.
16. tail :-
• This command can be used to print last 10 lines (default) of a file.
18. tree :-
• The tree command shows a visual hierarchical structure of directories
and files.
• To install use command sudo apt install tree.
• tree -s is used to print sizes .
20. top :-
• The top command is used to monitor system performance in real-time
• It shows CPU usage, memory usage running processes.
21. chown :-
• Chown command in Linux is used to change the ownership of files
and directories.
22. history :- the history command in linux is used to view a list of previously
executed comman
23. man :-
• This command is used to get manual of any command q
24. whereis :-
• it is used to locate the binary, source and manual page files for a
command.
25. ps :-
• The ps command is used to display information about running
processes.
• ps -e will show all ongoing processes.
26. free :-
• Free command is used to display the amount of free and used memory
27. kill :-
• The kill command is used to terminate a running process using its
Process ID.
28. clear :-
• This command is used to clear the terminal screen
29. which
• It Shows the exact path to the executable used in your shell.
30. whereis
• It is used to locate the binary , source and manual page files for a
command.
31. sudo :-
• sudo command is used to install a package.
• create new user using
32. chmod:-
• It is used to change permissions of a file.
• There are three types of access : owner , group , others
• There are three types of permissions also: read (r=4) , write (w=2) , execute
(x=1).
• User (u)
• Group(g)
• Others(o)
• All(a) = u+g+o
33. tar:-
• It is uses to create an archive file with .tar , .tar.gz , .tgz extensions.
• unzip files:-
35. sed:- It is used to edit or replace , insert or delete text in files.