Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Publication Station
Search
Editing
Text Images
(section)
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!
==== File Commands ==== '''ls''' β Directory listing<br /> '''ls -l''' β List files in current directory using long format<br /> '''ls -laC''' β List all files in current directory in long format and display in columns<br /> '''ls -F''' β List files in current directory and indicate the file type<br /> '''ls -al''' β Formatted listing with hidden files '''cd ''dir''''' β Change directory to '''''dir'''''<br /> '''cd''' β Change to home<br /> '''mkdir''' '''''dir''''' β Create a directory '''''dir'''''<br /> '''pwd''' β Show current directory '''rm ''name''''' β Remove a file or directory called '''''name'''''<br /> '''rm''' '''''-r dir''''' β Delete directory '''''dir'''''<br /> '''rm -f ''file''''' β Force remove '''''file'''''<br /> '''rm -rf ''dir''''' β Force remove an entire directory '''''dir''''' and all itβs included files and subdirectories (use with extreme caution) '''cp ''file1 file2''''' β Copy '''''file1''''' to '''''file2'''''<br /> '''cp -r ''dir1 dir2''''' β Copy '''''dir1''''' to '''''dir2'''''; create '''''dir2''''' if it doesn't exist<br /> '''cp ''file'' /home/''dirname''''' β Copy the filename called '''''file''''' to the '''/home/dirname''' directory '''mv ''file'' /home/''dirname''''' β Move the '''''file''''' called filename to the '''''/home/dirname''''' directory<br /> '''mv''' '''''file1 file2''''' β Rename or move '''''file1''''' to '''''file2'''''; if '''''file2''''' is an existing directory, moves '''''file1''''' into directory '''''file2''''' '''more ''file''''' β Display the file called '''''file''''' one page at a time, proceed to next page using the spacebar<br /> '''head ''file''''' β Output the first 10 lines of '''''file'''''<br /> '''head -20 ''file''''' β Display the first 20 lines of the file called '''''file'''''<br /> '''tail ''file''''' β Output the last 10 lines of '''''file'''''<br /> '''tail -20 ''file''''' β Display the last 20 lines of the file called '''''file'''''<br /> '''tail -f ''file''''' β Output the contents of '''''file''''' as it grows, starting with the last 10 lines
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