mkatari-bioinformatics-august-2013-introlinuxnotes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
mkatari-bioinformatics-august-2013-introlinuxnotes [2015/06/11 09:07] – [File manipulation] mkatari | mkatari-bioinformatics-august-2013-introlinuxnotes [2015/06/11 09:11] – [File manipulation] mkatari | ||
---|---|---|---|
Line 172: | Line 172: | ||
|mv | move a file. It will copy and then delete the source. This can be used to rename files as well. | | |mv | move a file. It will copy and then delete the source. This can be used to rename files as well. | | ||
|rm | remove a file | | |rm | remove a file | | ||
+ | |||
+ | < | ||
+ | [mkatari@hpc ~]$ mkdir temp | ||
+ | [mkatari@hpc ~]$ cd temp/ | ||
+ | [mkatari@hpc temp]$ ls | ||
+ | [mkatari@hpc temp]$ cp ../ | ||
+ | [mkatari@hpc temp]$ ls | ||
+ | allusers.txt | ||
+ | [mkatari@hpc temp]$ mv allusers.txt allusers.backup | ||
+ | [mkatari@hpc temp]$ ls | ||
+ | allusers.backup | ||
+ | [mkatari@hpc temp]$ rm allusers.backup | ||
+ | [mkatari@hpc temp]$ ls | ||
+ | [mkatari@hpc temp]$ cd ../ | ||
+ | [mkatari@hpc ~]$ rmdir temp/ | ||
+ | |||
+ | </ | ||
mkatari-bioinformatics-august-2013-introlinuxnotes.txt · Last modified: 2015/06/11 11:50 by mkatari