03 Sep 2010
Support Center
»
Knowledgebase
»
What are some common server commands?
What are some common server commands?
Solution
ls Displays everything in the current directory
ls -a Displays all files, including hidden
ls -l Displays all files, along with the size and timestamp
tar -zxpf 'filename' Uncompresses tar.gz files
tar -xpf 'filename' Uncompresses .tar files
gunzip 'filename' Uncompresses .gz files
cp 'filename' 'new_filename' Copies a file to a new file
mv 'filename' 'new_filename' Moves a file to a new file, or renames
mkdir 'directory' Creates a directory
rmdir 'directory' Deletes a directory
rm 'filename' Deletes a file
rm -rf 'directory' Deletes a directory, or forces the deletion of a file
cd 'directory' Moves to a directory
cd .. Moves to a lower directory
cd ~ Moves to your home directory
cd - Moves to the previous directory
pwd Displays the current directory
pico 'filename' Edits a file
ftp 'hostname' Connect to a FTP server
lynx 'web address' View a webpage
df Displays the hard drive stats
quota Displays your quota
uptime Displays the uptime of the server
uname -a Displays the operating system stats
whoami Displays your info
who Displays others connected to the server
last Displays the last login
whereis 'filename' Tells where a file is located
mail Check your email
ps -x Displays processes your running
ps -a Displays all processes running
ps -ux Displays running processes, with CPU/Memory usage
kill 'process ID' Kills a process
kill -9 'process ID' Kills an eggdrop process
killall 'process ID' Kills all running process of the same type
whatis Description of commands
man 'command' Displays help on the command
shutdown -r now Reboots server
ssh -l 'login' 'hostnmae' SSH to a server
telnet Don't use telenet, see SSH
Article Details
Article ID:
6
Created On:
30 Nov 2003 03:31 PM
This answer was helpful
This answer was not helpful
Login
[Lost Password]
Email:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Article Options
Add Comment
Print Article
PDF Version
Email Article
Add to Favorites
Home
|
Register
|
Submit a Ticket
|
Knowledgebase
|
News
Language:
English (U.S.)
Help Desk Software By Kayako eSupport v3.11.01