Frequently Used Linux Command Lines

Install WordPress
wget http://wordpress.org/latest.tar.gz
tar xfz latest.tar.gz
cp -r * ~/public_html/your/website/folder/

Change Permissions (rwx => 4 + 2 + 1 = 7)
For Directories: find /path/to/your/directory/ -type d -exec chmod 755 {} \;
For Files: find /path/to/your/file/ -type f -exec chmod 644 {} \;

Permissions
chmod -R 755 directory
chmod -R 644 files

Remove files and directory (use carefully)
rm -rf YourDirectory

Change Owner
chown -R apache new_name (change entire directory)

Remane Directory
mv {old} {new}

Database
To access database: mysql -u root -p
mysql> create database [database name];
mysql> show databases;
mysql> drop database [database name];
More

VI editor
Reference: Using the VI editor

10 thoughts on “Frequently Used Linux Command Lines

  1. Good way of describing, and pleasant article to obtain information concerning my presentation subject, which i am going to
    deliver in university.

  2. “Shout, this is different, he is my husband!”‘Brush’of for a while, Yang Yi sat in seat of honor from the sofa and upsetly looking at in the moment cold Europe Chen. [url=http://burberrywalletonlinesale.webs.com/]Cheap Burberry bags[/url] Cheap Burberry bags

  3. あなたが持っている可能性 すばらしい |重要} ブログ {ここに!でしょうあなたたい私ウェブログブログにいくつかの招待の投稿をする?

  4. Pingback: Nike Zoom Kobe VI

  5. Was some to tiredly return to own small room, soon started tidying up thing, thoughted of that small guy at the moment incredibly and still just the hospital is foolish, his heart has no since of a burst of piercing. clarisonic brush

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>