Tuesday, July 30, 2013

Các lệnh về file

Xóa file và thư mục:
-Xóa file:

$ rm {name file}
$ rm -f {name file}:không hỏi lại có muốn xóa không?

-Xóa thư mục:
$ rm -rf {name folder}

Trong đó
-r : Attempt to remove the file hierarchy rooted in each file argument i.e. recursively remove subdirectories and files from the specified directory
-f : Attempt to remove the files without prompting for confirmation, regardless of the file's permissions

Related Posts:

  • Compiling and installing php 5.4.15 and httpd 2.4.4 from sourceHigh-performance PHP on apache httpd 2.4.x using mod_proxy_fcgi and php-fpmBài viết sau sẽ hướng dẫn các bạn build Linux Web server nâng cao bao gồm MySQL, php và apache(LAMP) từ source trên CentOS 6.41. Cài đặt MySQLXem chi … Read More
  • Định dạng, format ổ cứng trên Linux1. Sử dụng lệnh trên Linux Trên Linux, sử dụng lệnh fdisk để phân chia partition của ổ cứng, mkfs để format, mount để gắn một partition đã format vào một mount point, chỉnh sửa fstab để Linux có thể tự động mount khi boo… Read More
  • Configure apache to use php-fpm Apache httpd 2.4.x sử dụng mod_proxy_fcgi và php_fpm. Chi tiết bên dưới sẽ hướng dẫn bạn cấu hình php-fpm virtual host. Code: [root@linux24h httpd.d]# cd /usr/local/php/etc [root@linux24h e… Read More
  • Install phalcon with MAMP This is instructions on how to compile and install the phalcon extension on Mac OS X (Lion), along with command-line tools. Everything will be done through the terminal, except installation of Xcode and the comma… Read More
  • Cách sử dụng /etc/hosts.allow và /etc/hosts.deny Hai tập tin này định nghĩa các quy tắt(luật) truy cập vào hệ thống ở tầng ứng dụng mạng. Dựa trên điều khiển TCPWappers và tôi thường gọi nó là một dạng tường lửa ở tầng ứng dụng. Số khác thì gọi là ACL(ACCESS CONTROL LIST).… Read More