Make this your Homepage
Hosting Discussion
 

forgot password?


Reply


Old
  Post #16 (permalink)   02-29-2008, 05:08 AM
HD Newbie
 
Join Date: Feb 2008
Location: The Netherlands
Posts: 15

Status: Tourwebhosting is offline
Great tutorial, keep it up!
 
 
 


Old
  Post #17 (permalink)   02-29-2008, 04:29 PM
HD Newbie
 
Join Date: Oct 2007
Location: canada eh
Posts: 46

Status: 1maverick is offline
yes excellent post - some commands might not work in jailed mode - but still excellent
__________________
1 Maverick
Go Rebel Networks
Backed By Passionate Support - Live 24 | 7 |365
 
 
 


Old
  Post #18 (permalink)   03-03-2008, 03:37 AM
HD Newbie
 
Join Date: Sep 2007
Location: New Jersey
Posts: 42

Status: TEE06 is offline
great list of commands!
 
 
 


Old
  Post #19 (permalink)   03-21-2008, 08:04 PM
HD Amateur
 
Join Date: Mar 2008
Posts: 82

Status: BobZ is offline
Some other useful commands:

tail : like cat, but only reads the end of the file
tail /var/log/messages : see the last 20 (by default) lines of /var/log/messages
tail -f /var/log/messages : watch the file continuously, while it's being updated
tail -200 /var/log/messages : print the last 200 lines of the file to the screen

more : like cat, but opens the file one screen at a time rather than all at once
more /etc/userdomains : browse through the userdomains file. hit Spaceto go to the next page, q to quit

pico : friendly, easy to use file editor
pico /home/burst/public_html/index.html : edit the index page for the user's website.

last : shows who logged in and when
last -20 : shows only the last 20 logins
last -20 -a : shows last 20 logins, with the hostname in the last field

w : shows who is currently logged in and where they are logged in from.
who : This also shows who is on the server in an shell.

netstat : shows all current network connections.
netstat -an : shows all connections to the server, the source and destination ips and ports.
netstat -rn : shows routing table for all ips bound to the server.

ps: ps is short for process status, which is similar to the top command. It's used to show currently running processes and their PID.
A process ID is a unique number that identifies a process, with that you can kill or terminate a running program on your server (see kill command).
ps U username : shows processes for a certain user
ps aux : shows all system processes
ps aux --forest : shows all system processes like the above but organizes in a hierarchy that's very useful!

du : shows disk usage.
du -sh : shows a summary, in human-readble form, of total disk space used in the current directory, including subdirectories.
du -sh * : same thing, but for each file and directory. helpful when finding large files taking up space.

wc : word count
wc -l filename.txt : tells how many lines are in filename.txt

Firewall - iptables commands
iptables -I INPUT -s IPADDRESSHERE -j DROP : This command stops any connections from the IP address
iptables -L : List all rules in iptables
iptables -F : Flushes all iptables rules (clears the firewall)
iptables --save : Saves the currenty ruleset in memory to disk
service iptables restart : Restarts iptables
 
 
 


Old
  Post #20 (permalink)   05-11-2008, 07:21 AM
HD Newbie
 
Join Date: May 2008
Posts: 27

Status: iastaff is offline
Nicely done. Had to copy some of those commands to a notepad file. Thanks for the reminder!
__________________
International Alliance Privacy Services
Shared Hosting|SSH Proxies|SSL Certs.|Dedi Servers
Domain Registration|Secure Email|Dedicated Hosting
 
 
 


Old
  Post #21 (permalink)   05-13-2008, 07:30 PM
HD Newbie
 
Join Date: Mar 2005
Location: Indonesia
Posts: 36

Status: JFOC is offline
free
check your memory

cat /proc/cpuinfo
check your cpu

dmicode
check your server hardware
__________________
50 GB Disk Space, 1000 GB Bandwidth, Master Reseller for Cheap
Web Site : http://www.jfoc.net
 
 
 


Old
  Post #22 (permalink)   05-25-2008, 08:44 AM
HD Newbie
 
Join Date: May 2008
Location: Reading
Posts: 31

Status: 55host.net is offline
very nice this will really help people looking to learn a server thanks
__________________
55host.net Webhosting, Reseller, Master Reseller Phone systems --- CHEAP,
Call us now, 1-909-331-4472
 
 
 


Old
  Post #23 (permalink)   05-25-2008, 08:47 AM
HD Newbie
 
Join Date: May 2008
Location: Reading
Posts: 31

Status: 55host.net is offline
Thanks i added this to our knowledge base,,
__________________
55host.net Webhosting, Reseller, Master Reseller Phone systems --- CHEAP,
Call us now, 1-909-331-4472
 
 
 


Old
  Post #24 (permalink)   05-27-2008, 05:06 AM
HD Newbie
 
Join Date: Sep 2005
Posts: 35

Status: shaunapple is offline
Nice guide!
 
 
 
Reply
Previous Thread Next Thread


Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On