• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

Basic Commands for VPS and Linux Server

AnonyViet by AnonyViet
January 28, 2023
in Network
0

To help you manage vps and linux servers more effectively, today I would like to guide you with some basic commands to administer the server.

Join the channel Telegram of the AnonyViet 👉 Link 👈
[​IMG] ​

Basic Commands for VPS and Linux Server

1. System related commands

exit: exit the command line window.
logout: same exit.
reboot: reboot the system.
halt: shutdown.
startx: start xwindows mode from a terminal window.
mount: mount the filesystem from a storage device into the home directory tree.
unmount: opposite to mount command.
/usr/bin/system-config-securitylevel-ui: Configure Firewall and SELinux

2. Command to view information

cat /proc/cpuinfo: Find CPU specifications
cat /proc/meminfo: Memory and information exchange page
lspci: View motherboard information
uname -r: View kernel version
gcc -v: Which compiler version do I have installed.
/sbin/ifconfig: View your IP addresses.
netstat: see all connections.
lsmod: What is loaded kernel module
last: see who has logged into the system
DF: View hard drive space
free -m: view memory usage
netstat -an |grep :80 |wc -l: see how many connections to port 80

3. Commands to manipulate files

ls: get a list of all files and directories in the current directory.
pwd: output the path of the working directory.
CD: change working directory to a new directory.
mkdir: create a new directory.
rmdir: delete empty directory.
cp: copy one or more files to a new directory.
mv: rename or move files or folders.
rm: delete file.
WC: count the number of lines, the number of characters… in the file.
touch: create a file.
cat: view file contents.
Because: start the vi text editor.
DF: check disk space.
du: view disk space used for certain files
tar -cvzpf archive.tgz /home/example/public_html/folder: compress a folder
tar -tzf backup.tar.gz: list compressed files gz
tar -xvf archive.tar: extract a tar file
unzip file.zip: extract the .zip file
wget: download a file.
chown user:user folder/ -RED: Change the owner for the entire directory to the file.

4. Commands when working on terminal

clear: clear the command line window.
date: view system date and time.
find /usr/share/zoneinfo/ | grep -i pst: see time zones.
ln -f -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime: Change the server time zone to Vietnam time zone
date -s “1 Oct 2009 18:00:00”: Adjust the time
calories: view system calendar.

5. System management command

rpm: check if a package is installed or not, or install a package, or use to remove a package.
ps: check system running process.
kill: stop the process when the process is suspended. Only the super-user can stop all processes, and the normal user can only stop the processes he created.
top: displays the activity of processes, especially information about system resources and the use of those resources by each process.
pstree: displays all processes as a tree.
sleep: for the system to stop working for a period of time.
useradd: create a new user.
groupadd: create a new user group.
passwd: change the password for the user.
userdel: delete created user.
groupdel: delete the created user group.
gpasswd: change the password of a user group.
su: allow login as another user.
groups: displays the group of the current user.
who: indicates who is logged into the system.
w: same as who command.
man: view command line instructions such as syntax, parameters, etc.

Note: Linux operating system is case sensitive.

Collection Information

The article achieved: 5/5 – (100 votes)

Tags: BasiccommandsLinuxServerVPS
Previous Post

Turn your Android phone into a device for eavesdropping, location tracking, video recording

Next Post

Cách sử dụng Notion toàn tập – Quản lý công việc hiệu quả

AnonyViet

AnonyViet

Related Posts

Is Renting a Cheap VPS to Run Docker Really Effective?
Network

Is Renting a Cheap VPS to Run Docker Really Effective?

July 2, 2026
How to get a free domain for 1 year from Gravatar
Network

How to get a free domain for 1 year from Gravatar

June 23, 2026
Cloud Infrastructure Resilience: Mitigating Advanced Layer 7 Vulnerabilities and Securing High-Throughput Database Handshakes
Network

Cloud Infrastructure Resilience: Mitigating Advanced Layer 7 Vulnerabilities and Securing High-Throughput Database Handshakes

June 20, 2026
Save image as Type contains malicious code: Remove immediately before losing money unfairly!
Network

Save image as Type contains malicious code: Remove immediately before losing money unfairly!

March 19, 2026
Instructions on how to register a .co.uk domain name for free for 1 year
Network

Instructions on how to register a .co.uk domain name for free for 1 year

March 12, 2026
How to Setup Paperclip AI: Create a Company for AI Agent
Network

How to Setup Paperclip AI: Create a Company for AI Agent

March 12, 2026
Next Post
Cách sử dụng Notion toàn tập – Quản lý công việc hiệu quả

Cách sử dụng Notion toàn tập - Quản lý công việc hiệu quả

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted

Recent News

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

July 30, 2026
Instructions for receiving the free Certified LLM Security Expert certificate

Instructions for receiving the free Certified LLM Security Expert certificate

July 30, 2026
MSI laptops are not just for gamers: Which line is suitable for students, office workers and creative people?

MSI laptops are not just for gamers: Which line is suitable for students, office workers and creative people?

July 29, 2026
What is quantum resistant cryptography? Why must the Internet change?

What is quantum resistant cryptography? Why must the Internet change?

July 29, 2026
Windows 7/8.1/10 users will be upgraded to Windows 11 for free

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

July 30, 2026
Instructions for receiving the free Certified LLM Security Expert certificate

Instructions for receiving the free Certified LLM Security Expert certificate

July 30, 2026
MSI laptops are not just for gamers: Which line is suitable for students, office workers and creative people?

MSI laptops are not just for gamers: Which line is suitable for students, office workers and creative people?

July 29, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

July 30, 2026
Instructions for receiving the free Certified LLM Security Expert certificate

Instructions for receiving the free Certified LLM Security Expert certificate

July 30, 2026
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply