Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Publication Station
Search
Editing
Terminal cheat sheet
From Publication Station
Namespaces
Page
Discussion
More
More
Page actions
Read
Edit
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== CORE COMMANDS === {| |cd [folder] |Change directory |- | ~/ | shortcut for your home directory. ~/Documents, ~/Downloads, ~/Desktop |- |cd ~ |Change to Home directory, e.g. ‘cd ~/Documents/’ |- |cd / |Root of drive |- | |‘cd ../’ = Move 1 level up |- | |‘cd ../../’ = Move 2 levels up |- |ls |List files and folder inside current folder |- |pwd |Full path to working directory |- |cat [file] |print content (concatenate) of file to screen |- |less [file] |read into content (concatenate) of file to screen |- |rm [file] |Remove a file, e.g. rm [file] [file] |- |rm -r [dir] |Remove a directory and contents |- |cp [file] [newfile] |Copy file to file |- |cp [file] [dir] |Copy file to directory |- |mv [file] [new filename] |Move/Rename file or dirtory, e.g. mv -v [file] [dir] |- |clear |Clear screen |} === COMMAND HISTORY === {| |history |Shows the stuff typed previously |} === DIRECTORY MANAGEMENT === {| |mkdir [dir] |Create new directory |- |mkdir -p [dir]/[dir] |Create nested directories |- |rmdir [dir] |Remove directory ( only operates on empty directories ) |- |rm -R [dir] |Remove directory and contents |} === PIPES - Allows to combine multiple commands that generate output === {| |more |Output content delivered in screensize chunks |- |> [file] |Push output to file, keep in mind it will get overwritten |- |>> [file] |Append output to existing file |- |< |Tell command to read content from a file |} === HELP === {| |man [command] |Show the manual for ‘command’ |- |whatis [command] |Gives a one-line description of ‘command’ |- |[command] -h |Offers help |- |[command] —help |Offers help |- |[command] help |Offers help |- |reset |Resets the terminal display |- |} ~
Summary:
Please note that all contributions to Publication Station are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Publication Station:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Main navigation
Main page
Printmaking Studio
Print Studio
Dig. Publishing Studio
Namespaces
Grafiwiki
Random Page
Log in
Wiki tools
Wiki tools
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs