Commands Flashcards
echo
Output text on the terminal.
ls
List the contents of a directory.
type
Show how a specific command is executed.
touch
Create an empty file or update an existing file’s modification date.
hostname
Show or change a system’s hostname.
rm
- Remove files
rmdir
Used remove empty directories from the filesystem in Linux. The rmdir command removes each and every directory specified in the command line only if these directories are empty. So if the specified directory has some directories or files in it then this cannot be removed by rmdir command.
whereis
Locates source/binary and manuals sections for specified files.
head
Print the first 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name.
tail
Print the last 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name.
sort
The sort command arranges text lines in useful ways.
sort [options]