Startseite Beiträge von Heute Kalender Boardsuche Benutzerliste FAQ Deine Einstellungen ändern Neue Beiträge
Navigation
Go Back   Mambo / Joomla Hosting Talk (MHT/JHT) > Hosting Forums > Tutorials/HOW-TOs/FAQ
User Name
Password
Reply
 
Thread Tools Display Modes

  #1  
Old 04-05-2006, 10:42 PM
Mambohut's Avatar
Mambohut Mambohut is offline
Administrator
 
Join Date: Mar 2005
Location: New Jersey, USA
Posts: 272
Thumbs up Basic SSH Commands

I started this thread to keep track of some of the linux shell commands that i use on a daily basis hoping that it'll be of help to someone and for myself as a reminder since i keep forgetting some of the not so popular ones.

If you know of a useful command that is not listed here please feel free to post it to be added to the list, this list will be constantly updated...

==============================================

- Lists hidden files and folders in the current directory with details:
ls -al
ll (that's a double L in lower case)

- Change your account's password
passwd

- Create a new directory
mkdir

- Creates symolic a link for a file or directory
ln
ex: ln –s /usr/local/apache/conf/httpd.conf /etc/httpd.conf

- Check server disk space in human readable format
df -h

- Check current running processes and server load
top
ex: top -d 1 -c (refresh every 1 sec and display running command)

- Display current logged in user with thier IP address
w

- Output a complete list of current running processes
ps -auxww

- Check for running net services and listening port
netstat -A inet -lnp

- Differnet ways to stop/start/restart apache:

apachectl stop
apachectl startssl
apachectl restart
service httpd restart
/etc/init/httpd restart

- Backup a database

mysqldump -uUsername -p dbname > anyname.sql

- Restore a database
mysql -u username databsase -p < databasefile.sql

- Rebuild your rpm database in case of rpm errors
cd /var/lib/rpm/
rm __db*
rpm --rebuilddb

- A workaround to delete a huge number of files that end with .wrk as an example (rm command is limited to a number of files to delete due to kernel restrictions)
find . -name '*.wrk' | xargs rm

- Watch log files in realtime

tail -f /path/to/logfile
ex: tail -f /var/log/exim_maillog to watch Exim log file

- Show MySQL process list

mysql -e 'show processlist'
mysqladmin pr

-List users IP connected to apache

netstat -lanp | awk '{print $5}' | cut -d ':' -f1 | sort | uniq -c

- Update installed and install missing Perl modules on cPanel servers

/usr/local/cpanel/bin/checkperlmodules

- List opened files used by a process # 1234

lsof -p 1234

- This command print out bootup messages, useful for analyzing hardware problems

dmseg
dmseg > boot_message.txt (send output to a text file)

- List disk usage of all files and folders under /tmp
du -h -s /tmp/*

- Copy a file like php.ini to multiple directories

find * -type d|xargs -i cp --verbose php.ini {}/.

- Replace a string like :blackhole: with :fail: in all files under /etc/valiases directory
replace :blackhole :fail: -- /etc/valiases/*

More to come soon...
__________________
Michael Morris - Buyhttp Internet Services
Webmaster [AT] Mambohut.com
Buyhttp.com - Your Mambo/Joomla
Friendly Hosting Providers
Cloud Hosting - True Cloud Hosting from a trusted name!
Reply With Quote
  #2  
Old 06-05-2006, 12:53 AM
my-e-space my-e-space is offline
Junior Member
 
Join Date: Jun 2006
Posts: 5
Default

Nice list! I don't deal with SSH much, thats what I pay my tech support guys for . But I have been wanting to learn more about SSH commands for simple tasks such as moving a file into the /home directory. I have found alot of tuts on this subject, and this is one of the better ones!

Thanks!
__________________
my-e-space.com Reliable shared and reseller web hosting!
ResellerWebHosting.info
Your Reseller Web Hosting Connection!
Reply With Quote
  #3  
Old 03-30-2011, 04:01 AM
rivkelecruz rivkelecruz is offline
Banned
 
Join Date: Mar 2011
Posts: 4
Default

If you want to learn basic SSH commands it is one of the simple tasks such as it can be perhaps so many ways which can be desired so many things which is good to use.
Reply With Quote
  #4  
Old 04-14-2011, 10:10 PM
vandoiyoy vandoiyoy is offline
Member
 
Join Date: Jan 2011
Posts: 51
Default webcam gratuie rencontre femme

free latin webcams
79
fetish webcam lady sonia ultimate video paypal webcam free beautiful women nude webcams ladies showing panties webcams free sexy sara webcams cat girl dating sim webcam meeting uk webcam exhibitionist carfun
webcam strip young teen
asian webcam free girls
53
young girls strip on webcam antwerp dating italian sex webcam pictures dating good housekeeping guarantees freelesbian dating service dating sims gmae
Reply With Quote
  #5  
Old 04-15-2011, 11:53 AM
vandoiyoy vandoiyoy is offline
Member
 
Join Date: Jan 2011
Posts: 51
Default dirty webcams wife pic

adult webcams private free no membership
82

free midget webcam xxxx
girls with big boobs with webcams
59
Reply With Quote
  #6  
Old 04-15-2011, 12:14 PM
vandoiyoy vandoiyoy is offline
Member
 
Join Date: Jan 2011
Posts: 51
Default chat webcams girl

teen girl on webcam
53

hot college girls xxxxing on webcams
teen overdoses on webcam
98
Reply With Quote
  #7  
Old 04-15-2011, 03:08 PM
vandoiyoy vandoiyoy is offline
Member
 
Join Date: Jan 2011
Posts: 51
Default sexy men webcams

free gay fetish webcam pic
55

webcam sex gratuit
webcam exhibitionist gallery
85
Reply With Quote
  #8  
Old 04-15-2011, 03:22 PM
vandoiyoy vandoiyoy is offline
Member
 
Join Date: Jan 2011
Posts: 51
Default free uncensored webcams online

webcams chat girls
55

mature webcams blonde facial
sexual role play webcams
85
Reply With Quote
  #9  
Old 04-15-2011, 03:32 PM
vandoiyoy vandoiyoy is offline
Member
 
Join Date: Jan 2011
Posts: 51
Default webcam girl video trading

webcam pictures of women
55

free gay voyeur webcams
free voyer internet webcam
85
Reply With Quote
  #10  
Old 04-16-2011, 08:11 AM
vandoiyoy vandoiyoy is offline
Member
 
Join Date: Jan 2011
Posts: 51
Default adult webcam male

girls on webcams pictures
82

striptease boobs webcams
sorority strip webcam
59
Reply With Quote
Reply


Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:52 AM.

Home . Members . FAQ . User CP . New Posts . Today's Posts . Media Kit
 
Joomla Top Sites - Your Primary Source of Joomla Traffic
Web Hosting . Mambo Tutorials . Joomla Hosting . Mambo Hosting . Joomla Top Sites . Joomla Advertising . Web Hosting Flash Tutorials . Joomla & Mambo Freelancers . Joomla Template Providers
Powered by vBulletin - Based on design by vbdesigns.de - © 2005 - 2006 by BuyHTTP Internet Services
Top Top
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.