arrow_upward

Pages (2):
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
#2
Thanks for Sharing your Commands also. Smile
I just added 20 cmds, Because it is enough for me Big Grin , Again thanks for posting.
#3
This is the basic linux command that you can use to do something basic . This is very helpful for newbies even i learn some new commands from this post
#4
Thanks alot to All who Shared thier Expermince with Linux here. Big Grin
I have only 1 Command which i wana share it with you guys:
On Searching for file by Name(https://www.digitalocean.com/community/t...-linux-vps):
file / -name {FILE_NAME}
#5
Wow thanks @Haris! That commands are really important, i will keep a copy of this at my device..
#6
Thanks @HarisHayat almost all of them i already knew. specially thanks for "14. Creating or extracting tar commands example:"
Terminal
Best Regards,
Global Moderator of Post4VPS 

#7
It would be better if the replied ones are also merged in the main topic since guests usually look at the main content and leave, so that will benefit Smile
#8
(05-28-2018, 08:05 PM)Lampard Wrote: It would be better if the replied ones are also merged in the main topic since guests usually look at the main content and leave, so that will benefit Smile

i agree with you. why only posts (#2) ? (#3) also should merge with the thread. If @deanhills & @Vuluts agree with this suggestion then we will merge it.
Terminal
Best Regards,
Global Moderator of Post4VPS 

#9
@arsalahmed786 agreed! you can merge mine with @HarisHayat main post, just indicate my name.
#10
Nice attempt, though you should've added the kind of output we would be expecting after the command as to not get confused.
Pages (2):


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