Linux Commands

Here are some common linux commands that I use to install and manage may Linux machine:

Assigning root password – sudo passwd root

Checking partition size – sudo df -h

Checking folder size – sudo du – hs <folderpath> / sudo du -chks (summary)

Change File and Folder permission – sudo chmod 777 /var/www/smf -R

Copy File – sudo cp -R <source> <destination>
Remove File – sudo rm <file>

Create Directory – sudo mkdir <directoryname>

Copy file to remote machine – rsync -v -u -a -r –delete –rsh=ssh /var/www/ root@remotehost:/var/www/
Others will be posted on this page regularly…

No comments yet

Leave a reply

You must be logged in to post a comment.