The Shell
Prof. Dr. Mirco Schoenfeld
VirtualMachine
By the way, the user account is password protected.
VirtualMachine
- Import the virtual machine into your VirtualBox host
Make sure to check for compatibility of your
settings with your host machine, e.g. the guest systems’s base
memory.
VirtualMachine
- Start the ubuntu-24.04 machine.
The Terminal
Now, please open a terminal and execute some commands.
The Terminal
The Terminal
The Terminal
The Terminal
The Terminal
Task
Copy a text file to your home directory
cp /usr/share/common-licenses/GPL-3 .
and navigate the file.
The Terminal
The Terminal
To exit the less
-reader, type q
on your
keyboard.
Task
Use grep
to match regular expressions in the file.
The Terminal
Task
Execute these commands and find out what they do:
grep -i "license" GPL-3
grep -n "license" GPL-3
grep -v "the" GPL-3
grep -vn "the" GPL-3
Task
Execute these commands and find out what they do:
grep "GNU" GPL-3
grep "^GNU" GPL-3
grep "and" GPL-3
grep "and$" GPL-3
Task
Execute these commands and find out what they do:
grep "..cept" GPL-3
grep "t[wo]o" GPL-3
grep ".ode" GPL-3
grep "[^c]ode" GPL-3
grep "^[A-Z]" GPL-3
Task
For more examples, see