...
rm filename : remove a file
rm -r directory-name : remove a directory with all its content
rmdir directory-name : removes only empty directories
options:
-i : interactive mode → prompt for confirmation
Look at a ASCII/text
...
Files
cat filename | display the whole file contents one screen |
more filename | display the file contents one screen at a time |
less filename | program for browsing or paging through files or other output. Can use arrow keys for scrolling forward or backward. |
head filename | display first 10 lines of a file. Option -n : display first n lines |
tail filename | display last 10 lines of a file. Option -n : display last n lines |
Create/Modify ASCII/text Files
To add an empty file you can use the command 'touch':
touch filename
To edit a file it is best to use an editor. For example:
Wild cards
A number of characters are interpreted by shell before any other action takes place. These characters are known as wildcard characters. Usually these characters are used in place of filenames or directory names.
...