- Explain what each of the following commands does and give an example on how to use it:
-
Tips: Use
man
command (example:man touch
). The explanation of the searched word will appear (if exist). You can move using the arrows on your keyboard. To exit just pressq
.touch ls rm cat cp mkdir pwd cd mv nano chmod sudo
-
What each of the following commands does?
cd / cd ~ cd cd .. cd . cd -
-
Some of the commands in the previous question can be run with the
-r/-R
flag. What does it do? Give an example to when you would use it. -
Explain each field in the output of
ls -l
command. -
What are hidden files/directories? How to list them?
-
What
>
and<
do in terms of input and output for programs? -
Explain what each of the following commands does and give an example on how to use it:
sed grep cut awk
-
How to rename a file or a directory ?
-
Specify which command would you use for each of the following scenarios;
- Remove a directory with files. - Display the content of a file. - Provides access to the file /tmp/x for everyone. - Change working directory to user home directory.
-
How can you check what is the path of a certain command?
-
How can you create and edit a new files ?
-
Explain piping. How do you perform piping?
-
How can you find a file using its name or a part of it ?
-
How to check which commands you executed in the past?
-
How do you keep your packages up to date ? When it is need ?
-
How can you see your network interface settings ?
-
How can you manage routing, devices and tunnels ?
-
How can you turn off/on a network interface ?
-
How can you stop all current process running ?
-
How to stop an active command ? (example, stoping nmap scan)
-
How do you list processes by name ?
-
How do you give executable right to a file ?