File Management To search for a file by name First run “updatedb” This updates files index on the system.
Once this is done find a file use the locate command
Copying, Moving, renaming files Move a file to a directory mv
Copy a file. You can copy a file to a directory and also rename it while copying cp filename /etc/filename
Make a directory mkdir
Remove a file and can also be used to rm directories rm To remove an entire directory and its contents, type rm
-rf /directory where "/directory" is the path to the directory that you
want to delete.
Remove empty directories rmdir touch creates an empty file
Enabling FTP Turn FTP on You need to modify the /etc/inetd.conf with an ftp line like below ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd
Have a Linux Problem
Linux Books
Linux Home: Linux System Administration Hints and Tips (c) www.gotothings.com All material on this site is Copyright.
|