![]() |
Some useful commands for VPS! - Printable Version +- Post4VPS Forum | Free VPS Provider (https://post4vps.com) +-- Forum: VPS Discussion (https://post4vps.com/Forum-VPS-Discussion) +--- Forum: Tutorials (https://post4vps.com/Forum-Tutorials) +--- Thread: Some useful commands for VPS! (/Thread-Some-useful-commands-for-VPS) Pages:
1
2
|
Some useful commands for VPS! - HarisHayat - 04-29-2018 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 ] Code: mkdir [ folder name ] Code: mv [ filename or folder ] [ New folder or Location ] 6. Renaming File or folder Code: mv [ old name ] [ new name ] Code: cp [ file or folder ] [ new location or folder ] Code: rm -rf Code: ls 10. Download any file or URL Code: wget [ filename or URL ] 11. Changing your VPS/SSH password Code: passwd Code: chmod -777 [ filename or foler ] 13. Unzip zip files! Code: unzip [ filename ] Code: Create a new tar archive. 15. Create or Extract gzip files: Code: To create a *.gz compressed file: 16. Creating .txt document! Code: Following example creates a .txt file called test.txt under your home directory. 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! ***************Vuluts's post merged with thread*************** The following commands shared with by us @Vuluts **************************************************************** Would like to add something too: 1. Switching user Code: su "user" 2. Entering MySQL Code: mysql -u "user" -p 3. Adding user Code: adduser "user" 4. Changing directory Code: cd "directory" 5. Installing packages Code: 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: Code: exit 2.Check what OS VPS is running on: Code: cat /etc/*-release 3. Check whether OS is 32 or 64 bit: Code: uname -a 4. How to reboot VPS: Code: reboot 5. How to show log of previous reboots of VPS: Code: last reboot RE: Some useful commands for VPS! - HarisHayat - 05-03-2018 Thanks for Sharing your Commands also. ![]() I just added 20 cmds, Because it is enough for me ![]() RE: Some useful commands for VPS! - humanpuff69 - 05-03-2018 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 RE: Some useful commands for VPS! - Zorono - 05-19-2018 Thanks alot to All who Shared thier Expermince with Linux here. ![]() I have only 1 Command which i wana share it with you guys: On Searching for file by Name(https://www.digitalocean.com/community/tutorials/how-to-use-find-and-locate-to-search-for-files-on-a-linux-vps): Code: file / -name {FILE_NAME} RE: Some useful commands for VPS! - youssefbasha - 05-19-2018 Wow thanks @Haris! That commands are really important, i will keep a copy of this at my device.. RE: Some useful commands for VPS! - arsalahmed786 - 05-21-2018 Thanks @HarisHayat almost all of them i already knew. specially thanks for "14. Creating or extracting tar commands example:" RE: Some useful commands for VPS! - Lampard - 05-28-2018 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 ![]() RE: Some useful commands for VPS! - arsalahmed786 - 05-29-2018 (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 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. RE: Some useful commands for VPS! - Vuluts - 05-29-2018 @arsalahmed786 agreed! you can merge mine with @HarisHayat main post, just indicate my name. RE: Some useful commands for VPS! - Honey - 05-29-2018 Nice attempt, though you should've added the kind of output we would be expecting after the command as to not get confused. |