Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
24 Cards in this Set
- Front
- Back
pwd |
print working directory tells you what folder you're in - what the path is |
|
hostname |
my computer's network name |
|
mkdir |
make directory if you want to make a directory within a directory use the forward slash ex. to make a folder within the folder test use: mkdir test/"second folder" (you will need to be in the directory that holds the first folder you are referencing; you can only make the subsequent folders using this command if the prior folder has already been created) To make a folder name with spaces, you need to enclose it in quotes If you want to make a file path all in one command use -p dir1/dir2/dir3/dir4 |
|
cd |
change directory just use cd if you want to go back to the home directory use cd directory_name if you want to change to that directory to move up a folder, use cd .. to move up multiple folders in one command use cd .. / .. / .. / |
|
ls |
list directory lists what documents and folders are in the current directory if you want to list out a directory you're not currently in, use ls directoryname/ |
|
rmdir |
remove directory ex. rmdir dir1 |
|
pushd |
push directory |
|
popd |
pop directory |
|
cp |
copy a file or directory to copy an existing file to a new file use: cp originalfile.txt newfile.txt (the second file is the copy) to copy an existing file into a different folder use: cp originalfile.txt newfolder (first string after cp is the file to copy and the second string is the folder to place the copy of the file into) to copy an entire directory including its contents use: cp -r originaldir newdir |
|
mv |
move a file or directory This really means renaming a file or directory example renaming a file: mv oldfildname.txt newfilename.txt example renaming a folder: mv olddirname newdirname |
|
less |
page through a file - view the contents of a file example: less test.txt (will show the contents of this file) to page through the file, press the spacebar to escape the preview, enter q for quit |
|
cat |
print the whole file without paging This will print out all of the contents of the file on the screen if you want to print out the contents of two files onto the same screen use: cat file1.txt file2.txt |
|
xargs |
execute arguments |
|
find |
find files |
|
grep |
find things inside files |
|
man |
real a manaul page |
|
apropos |
find what man page is appropriate |
|
env |
look at your environment |
|
echo |
print some arguments |
|
export |
export/set a new environment variable |
|
exit |
exit the command line |
|
sudo |
DANGER! become super user root DANGER! |
|
touch |
creates a new empty file ex. touch test.txt |
|
rm |
removes/deletes a file rm file1.txt can remove multiple files in one command: rm file1.txt file2.txt file3.txt to remove a file within another directory: rm directory/file.txt to remove a directory and all of its files: rm -rf directory |