顯示具有 Linux command 標籤的文章。 顯示所有文章
顯示具有 Linux command 標籤的文章。 顯示所有文章

2009年10月6日 星期二

How to check folder size in linux - Linux Newbie

Ans: To calculate the total folder size of folder "bin"

$ du -sh bin/
280K bin/

-s, --summarize (display only a total for each argument)
-h, --human-readable ( print sizes in human readable format (e.g., 1K 234M 2G))

2009年2月18日 星期三

Change own for Symbolic Link

To change the group ownership of symbolic link, simply use the -h or –no-dereference flag to the chgrp command.

Example:

chgrp -h new_group symbolic_link_name

chown -h sam:sam link_name

2008年12月28日 星期日

How to Install PHP mbstring extension

1. sudo yum install php-mbstring / yum install php-mbstring
( may be need run more times )

2. service httpd restart

Remove file
rm xxx

Remove directory
rm -rf xxx