Posted over 4 years ago. Visible to the public.

Linux basics [1d]

Resources

Exercises

Experiment and do something useful with the following commands. You might need to study the commands' man pages and add parameters.

  • man
  • top
  • dpkg -l
  • apt-cache search <text>
  • apt-get update
  • apt-get dist-upgrade
  • apt-get install <package-name>
  • sudo <command>
  • sudo su
  • ssh
  • ps
  • df
  • du
  • netstat
  • scp
  • ln -s
  • touch
  • telnet
  • curl
  • wget
  • kill
  • kill -9
  • pkill -f <partial-name>
  • env
  • dig

Understand what you can do with the following configuration files:

  • ~/.bashrc
  • ~/.ssh/config
  • ~/.gitconfig

Understand what the following shortcuts do in a terminal:

  • Up-arrow
  • Tab
  • CTRL+R
  • CTRL+Z / jobs / fg / bg

Understand access rights and ownership of files:

  • What does "ownership" mean for files?
  • Each file has 9 flags, 3 read, 3 write, and 3 executable flags. What do they mean?
  • Write a simple bash script that prints a message. How can you execute it?
  • Write the same script in ruby. What do you have to do to just call it from the command line? Learn about the "shebang".

Owner of this card:

Avatar
Henning Koch
Last edit:
about 1 month ago
by Hannes Randow
Posted by Henning Koch to makandra Curriculum
This website uses cookies to improve usability and analyze traffic.
Accept or learn more