Working with files and Directories Flashcards
How to scroll down one page line by line with the command more?
Pressing the ENTER key.
How to move to the next page with the command more?
Pressing the Space bar key.
How to move to the previous page with the command more?
Pressing the b key.
How to search for a string with the command more?
Pressing the / key.
What does the tac command do?
Display the file content in reversed order.
What is the command to search something inside the text in Nano?
CTRL + W
What are the command to compare two files?
cmp and comm
What is the command to replace strings in a file without saving?
sed
How to see the size in megabytes with the df command?
df -m
What is tar used for?
To work with tarballs.
What is the command to compress a file with tar?
tar -zcvf [compressed file name] [file to compress]
What is the command to uncompress a tar file?
tar -zxvf [file name]
How to compress or uncompress zip files?
zip and unzip commands.