See list of files and folders
ls
example: ls ‐l
‐l : show permissions, ownerships etc
‐a : Show all files, including hidden files
To change location
cd
example: cd Documents
Copy file or folder
first specify file (and path if necessary), cp, then specify destination.
cp
example: cp myfile.doc Desktop/
‐r : Copy folders too, including contents (otherwise
folders will be ignored)
Delete file(s) or folder(s)
multiple files/folders can be specified
rm
example: rm –rf myfolder
‐r : Delete folder;
Create a link to a file (shortcut)
first specify the file (including path if necessary), and then the location where the link should be created. A different filename may be specified for the new link.
ln
example: ln –s myfile.doc ~/Desktop/
Unmount attached storage device
umount
example: sudo umount /media/cdrom
No comments:
Post a Comment