Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
labs:unix_basics [2016/09/15 20:12] – [ssh] adminlabs:unix_basics [2024/09/03 20:34] (current) – [Basic Unix Commands] admin
Line 4: Line 4:
   > man ls   > man ls
  
-[[http://www.thinkgeek.com/tshirts-apparel/xkcd/dabb/|A Linux Cheat Shirt]] 
 ===== Directory Access/Manipulation ===== ===== Directory Access/Manipulation =====
  
Line 33: Line 32:
  
   cp <source> <destination>   cp <source> <destination>
 +  
 +For example
 +
 +  cp myfile.txt myfilecopy.txt
  
 To copy a directory and its contents, use the ''-r'' option.  ''-r'' means //recursively// For example,  To copy a directory and its contents, use the ''-r'' option.  ''-r'' means //recursively// For example, 
Line 45: Line 48:
  
 If the destination is a directory, then the file(s) are moved into that directory. If the destination is a directory, then the file(s) are moved into that directory.
 +
 +For example, to rename ''myfile.txt'' to ''newname.txt'', run
 +
 +  mv myfile.txt newname.txt
 ==== Delete Files ==== ==== Delete Files ====
  
labs/unix_basics.1473970361.txt.gz · Last modified: 2016/09/15 20:12 by admin
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0