| Subcribe via RSS

linux cheat sheet

May 14th, 2008 | No Comments | Posted in linux by dreamluverz


Click on the image below to view the linux cheat sheet

Tags: ,

linux: change ownership and permission for file or directory via ssh

February 7th, 2008 | 1 Comment | Posted in linux, server by dreamluverz


sources: http://webtools.live2support.com/linux/chown.php, http://www.tuxfiles.org/linuxhelp/fileowner.html

I’ve tried this 2 lines in order.

chown -R -v [username]  [directory/file]

chmod -R -v [permission]  [username]  [directory/file]

-R = recursively, including sub directories
-v = verbose, you will see it in action

Tags: , , ,

Linux / Unix rmdir command

February 6th, 2008 | 2 Comments | Posted in linux, server by dreamluverz

About rmdirDeletes a directory.

Syntax

rmdir [OPTION]… DIRECTORY…

–ignore-fail-on-non-empty ignore each failure that is solely because a directory is non-empty.
-p, –parents Remove DIRECTORY and its ancestors. E.g., `rmdir -p a/b/c’ is similar to `rmdir a/b/c a/b a’.
-v, –verbose output a diagnostic for every directory processed.
–version output version information and exit.

Examples

rmdir mydir - removes the directory mydir

rm -r directory - would remove a directory, even if files existed in that directory.

source: http://www.computerhope.com/unix/urmdir.htm 

Tags: