Terminal Flashcards
Hot key for opening the terminal on Linux
CRTL + ALT + T
What do terminal commands begin with
$
When executing ls -F
A trailing / indicates what
A directory
When executing ls -F
A trailing @ indicates what
A link
When executing ls -F
A trailing * indicates what
An executable
When executing ls -F
Any names with no symbols indicates what
A file
How do you clear the terminal
Enter clear
What does command ls do
List information about the files
Dissect the following command into its component parts
$ ls -F /
$ is a prompt
ls is the command
-F is an option
/ is an argument
Terminal command to delete/remove a file
rm -ri
-r recursive option allows deletion of a directory and all of its contents
-i interactive option helps prevent the deletion of unintended contents by asking before deleting.
Terminal command to move a file
mv
Terminal command for counting the number of lines, words, and characters in a file
wc
What is a pipe in terminal commands
|
Used to run multiple commands together
What terminal commands allows you the see the contents of a file
cat or less
Terminal command to sort its inputs
sort