Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

20 Commands for VPS - Very Important!

#1
Hello Guys,

There are some useful commands for VPS and also good for beginners!
 



1. Used for Checking RAM!
 
Code:
free -m


2. Used for Checking SSD/HDD
 
Code:
df -h


3. Used for Switching directories. 
 
Code:
cd [ folder/file name ]
4. Used for making Directory.
 
Code:
mkdir [ folder name ]
5. Used for moving Files or Folder
 
Code:
mv [ filename or folder ][ New folder or Location ]



6. Renaming File or folder
 
Code:
mv [ old name ][ new name ]
7. Copy files or folders
 
Code:
cp [ file or folder ][ new location or folder ]
8. Removing/Delete files.
 
Code:
rm -rf
9. Checking files and folders in which directory in you are.
 
Code:
ls



10. Download any file or URL
 
Code:
wget [ filename or URL ]


11. Changing your VPS/SSH password
 
Code:
passwd
12. Giving folder/file permissions.
 
Code:
chmod -777 [ filename or foler ]


13. Unzip zip files!
 
Code:
unzip [ filename ]
14. Creating or extracting tar commands example:
 
Code:
Create a new tar archive.
tar cvf archive_name.tar dirname/


Extract from an existing tar archive.
tar xvf archive_name.tar


15. Create or Extract gzip files:
 
Code:
To create a *.gz compressed file:
$ gzip test.txt


To uncompress a *.gz file:
$ gzip -d test.txt.gz


16. Creating .txt document!
 
Code:
Following example creates a .txt file called test.txt under your home directory.
nano test.txt
17. Checking the users controlling your VPS/accounts.
 
Code:
whoami


18. Checking network status.
Code:
netstat


19. Checking VPS Running programs!
Code:
top


20. Creating a manually document file.
Code:
touch [ filename with extension ]

ALL THESE 20 Commands are Very useful.. and very helpful.


THANKS FOR Reading!
  




Users browsing this thread:
1 Guest(s)

20 Commands for VPS - Very Important!524