General Commands Flashcards
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
“mkdir -p” does what?
Make a directory where parents don’t exist.
“mkdir – parents” does what?
Make a directory where parents don’t exist.
“mkdir -p /kevin/desktop/{math, english}” does what?
Creates both math and english directories at the same time on the desktop.
“ls -R”
Lists all files and directories in the current directory and off spring directories and files.
“mv” command does what?
Renames files and folders
“mv -i” means what?
Rename interactive mode.
“less” command does what?
Displays the contents of text files. Has more features.
“more” command does what?
Displays the contents of text files. Has less features.
“shotwell” command does what?
Opens the Shotwell photo view client.
How do you deal with spaces?
Use auto-complete by using the TAB button.
The “cal” command display what?
Calender