18 lines
289 B
Markdown
18 lines
289 B
Markdown
# Unix Answers
|
|
|
|
## Single commands
|
|
|
|
1. `find . -name '*.txt'`
|
|
2. `touch empty`
|
|
3. `ls -l empty`
|
|
4. `id`
|
|
5. `date`
|
|
|
|
## Piping commands together
|
|
|
|
1. `find . -name '*.txt' > /tmp/txtfiles`
|
|
2. `echo 'hello there!' >> empty`
|
|
3. `vim empty`
|
|
4. `cat empty`
|
|
5. `grep -n lo empty`
|
|
6. `date | vim -` |