arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some useful commands for VPS!
#1
Hello Guys,
There are some useful commands for VPS and also good for beginners!



1. Used for Checking RAM!

free -m

2. Used for Checking SSD/HDD

df -h

3. Used for Switching directories. 

cd [ folder/file name ]
4. Used for making Directory.

mkdir [ folder name ]
5. Used for moving Files or Folder

mv [ filename or folder ] [ New folder or Location ]


6. Renaming File or folder

mv [ old name ] [ new name ]
7. Copy files or folders

cp [ file or folder ] [ new location or folder ]
8. Removing/Delete files.

rm -rf
9. Checking files and folders in which directory in you are.

ls


10. Download any file or URL

wget [ filename or URL ]

11. Changing your VPS/SSH password

passwd
12. Giving folder/file permissions.

chmod -777 [ filename or foler ]

13. Unzip zip files!

unzip [ filename ]
14. Creating or extracting tar commands example:

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:

To create a *.gz compressed file:
$ gzip test.txt


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

16. Creating .txt document!

Following example creates a .txt file called test.txt under your home directory.
nano test.txt
17. Checking the users controlling your VPS/accounts.

whoami

18. Checking network status.
netstat

19. Checking VPS Running programs!
top

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

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

THANKS FOR Reading!


***************Vuluts's post merged with thread***************
The following commands shared with by us @Vuluts
****************************************************************


Would like to add something too:

1. Switching user

su "user"

2. Entering MySQL

mysql -u "user" -p

3. Adding user

adduser "user"

4. Changing directory

cd "directory"

5. Installing packages

yum (CentOS) / apt-get (Debian) "package"


***************Vuluts's post merged with thread***************
The following commands shared with by us @deanhills
****************************************************************


Great list there thanks for posting it @HarisHayat. Here are some more useful ones:

1. How to get out of VPS:

exit


2.Check what OS VPS is running on:
cat /etc/*-release


3. Check whether OS is 32 or 64 bit:

uname -a

4. How to reboot VPS:

reboot

5. How to show log of previous reboots of VPS:
last reboot
Servzen.com | Premium Hosting Provider!
Fast, secure and affordable plans | VPS Hosting | Shared Hosting.


Messages In This Thread
Some useful commands for VPS! - by HarisHayat - 04-29-2018, 09:35 AM
RE: Some useful commands for VPS! - by HarisHayat - 05-03-2018, 09:44 AM
RE: Some useful commands for VPS! - by Zorono - 05-19-2018, 03:37 PM
RE: Some useful commands for VPS! - by Lampard - 05-28-2018, 08:05 PM
RE: Some useful commands for VPS! - by deanhills - 05-30-2018, 04:25 PM
RE: Some useful commands for VPS! - by Vuluts - 05-29-2018, 11:40 AM
RE: Some useful commands for VPS! - by Honey - 05-29-2018, 02:46 PM

Possibly Related Threads…
Thread
Author
Replies
Views
Last Post

person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting