Command line Flashcards
How to go back one directory
To navigate up one directory level, use “cd ..”
To navigate to the previous directory (or back), use “cd -“
What does “cp” means?
The cp command will make a copy of a file for you. Example: “cp file foo” will make an exact copy of “file” and name it “foo”, but the file “file” will still be there. If you are copying a directory, you must use “cp -r directory foo” (copy recursively). (To understand what “recursively” means, think of it this way: to copy the directory and all its files and subdirectories and all their files and subdirectories of the subdirectories and all their files, and on and on, “recursively”)
How to check all the command lines you have enter?
enter “history”
What is the use of Ctrl + R?
Searches for commands you’ve already typed. When you have entered a very long, complex command and need to repeat it, using this key combination and then typing a portion of the command will search through your command history. When you find it, simply press Enter.
List the directories and files, including the hidden files
ls -Force
How to create a file ?
How to creatre a folder?
echo $null > filename
mkdir directory-name