21 lines
869 B
Markdown
21 lines
869 B
Markdown
# Unix Workout
|
|
|
|
The exercises in this document is meant to improve your Unix knowledge, such as daily commands and manual pages.
|
|
|
|
## Single commands
|
|
|
|
1. Find all text files (`.txt`) in your home directory using the `find` command
|
|
2. Create an empty file named `empty`
|
|
3. List the `empty` file with its permissions.
|
|
4. Who are you in this system? what is your username? what is your user ID? which groups do you belong to?
|
|
5. What's the date and time right now?
|
|
|
|
## Piping commands together
|
|
|
|
1. Did you find all the `.txt` files? good! now put that output into `/tmp/txtfiles`
|
|
2. Without using a text editor, put `hello there!` into `empty`
|
|
3. Using your favorite editor, Vim, put more content into `empty`
|
|
4. Print the content.
|
|
5. Print the content and look if the string `lo` is in there!
|
|
1. Which line is it on?
|
|
6. Get the date, again, and *pipe* it into `vim` :) |