General Commands Flashcards
(35 cards)
pwd
Print working directory
ls
List directory
ls -a
List hidden files in directory
ls –all
List hidden files in directory
ls -l
List long list of information on directory files
ls -la
List long list of all files including hidden information
filename@
Shortcut file or folder
filename.sh*
Executable file
cd ..
Change directory
mkdir
Make directory
rmdir
Remove directory
rm
Delete files and subdirectory and files. “No Warning if directory contains files.”
ls -r
Reverse the files’ order of listing
cat
Display the content of a file.
Ctrl + Alt + T
Brings up the Bash Shell Terminal
What does “cat” abbreviate?
Catenate
Catenate means
Arrange a string of characters into a chained list.
Ctrl + Alt + D
End of file command
What command prints the contents of a file to the screen?
cat
cat > filename.txt, does what?
Creates the file named “filename.txt” and allows user to enter text into the file.
” > “ Means what?
Redirection
”»_space; “ Means what?
Redirection appending a file.
“cat filename1.txt filename2.txt > filename3.txt” does what?
Adds the content to filename1 and filename3 to a newly created file called filename3.
“cat filename1.txt»_space; filename2.txt” does what?
Appends flilname2.txt with the contents of filename1.txt