Skip to content

Latest commit

 

History

History
80 lines (50 loc) · 2.12 KB

meet_your_terminal.md

File metadata and controls

80 lines (50 loc) · 2.12 KB

Linux Exercises - Meet your terminal

  1. 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 press q.

      touch
      ls
      rm
      cat
      cp
      mkdir
      pwd
      cd
      mv
      nano
      chmod
      sudo
    
  1. What each of the following commands does?

     cd /
     cd ~
     cd
     cd ..
     cd .
     cd -
    
  2. 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.

  3. Explain each field in the output of ls -l command.

  4. What are hidden files/directories? How to list them?

  5. What > and < do in terms of input and output for programs?

  6. Explain what each of the following commands does and give an example on how to use it:

     sed
     grep
     cut
     awk
    
  7. How to rename a file or a directory ?

  8. 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.
    
  9. How can you check what is the path of a certain command?

  10. How can you create and edit a new files ?

  11. Explain piping. How do you perform piping?

  12. How can you find a file using its name or a part of it ?

  13. How to check which commands you executed in the past?

  14. How do you keep your packages up to date ? When it is need ?

  15. How can you see your network interface settings ?

  16. How can you manage routing, devices and tunnels ?

  17. How can you turn off/on a network interface ?

  18. How can you stop all current process running ?

  19. How to stop an active command ? (example, stoping nmap scan)

  20. How do you list processes by name ?

  21. How do you give executable right to a file ?