Thứ Bảy, 12 tháng 3, 2011

touch, cat, nano, gedit, rm Command


touch <path>
path: directoty/filename or filename
In some directory you want to have root permission to execute:
sudo touch /var/www/test.php
test.php has been created!
- View content:
sudo cat /var/www/test.php
- Editor file:
+ sudo nano /var/www/test.php : edit on terminal or
+ sudo gedit /var/www/test/php : edit by Text Editor(gedit).
 - Delete file
rm /var/www/test.php
or
sudo rm /var/www/test.php

0 nhận xét:

Đăng nhận xét