Changes

Jump to navigation Jump to search
2,512 bytes added ,  04:02, 18 June 2007
no edit summary
Line 1: Line 1: −
'''Created by: [[User:PicsOne|PicsOne]] (Normando Hall)'''
+
'''Created by: [[User:PicsOne|PicsOne]] (Normando Hall), added info: [[User:Kruhm|Kruhm]]'''
   −
{{drawBoxNote|content=Please feel free to modify or add info to this howto, and make corrections in typos, because I don't speak english very good.}}
+
===Apache Related Commands===
 
  −
=== Apache Related Commands ===
      
*Expand <b>httpd.conf</b> template:
 
*Expand <b>httpd.conf</b> template:
Line 83: Line 81:  
Not secure. Instead use per ibay or directory.
 
Not secure. Instead use per ibay or directory.
    +
===Command-Line Quick Reference Guide===
 +
Below is a list of commands that I use all the time & tend to forget.
 +
====Generic Linux====
 +
COMMAND NAME DESCRIPTION
 +
man <commandname>      shows more info about a command
 +
uname -r kernel release version
 +
/usr/sbin/smbd -V samba version
 +
/usr/sbin/httpd -v apache version
 +
mysql -v mysql version
 +
mv         moves or renames a file
 +
cp         copies or backsup a file
 +
rm         removes or deletes a file
 +
ps -ax|grep <process> outputs processes running <process>
 +
ps -AH         report process status
 +
top         shows processes
 +
top -i                  shows only active processes
 +
iptraf         shows network info
 +
mc -d                  show midnight commander to navigate through system easily
 +
cat /proc/mdstat shows software raid
 +
host -t mx aol.com shows the mx records for aol.com
 +
net groupmap list shows samba mappings to nt groups
 +
telinit 1 changes to single user mode
 +
ifconfig shows detailed info on ethernet ports
 +
grep -r "casesensitivesearch" * finds all documents containing the criteria in a dir
 +
tail -f /var/log/<LOGFILE> realtime viewing of your log file
 +
hdparm -t /dev/mdx (where x is 0,1,2,etc) shows software raid performance
 +
mdadm --detail /dev/mdx (where x is 0,1,2,etc) gives raid info
 +
 +
====RPM's====
 +
rpm -qa         shows all rpms installed
 +
rpm -qa --last shows all rpms installed & installation date
 +
rpm -q         asks for rpm info
 +
rpm -qi asks for detailed rpm info
 +
rpm -ql <packagename>  lists all files in a package
 +
rpm -qf <filename>      reports what package a file belongs to
 +
 +
====YUM'ing====
 +
yum install <packagename>              installs packagename & any package it may need
 +
yum remove <packagename>                removes packagename
 +
yum list updates                        list updates to any installed package
 +
yum list available                      list available packages in all repos not already installed
 +
yum list available |grep <reponame>    list available packages -shows only from repo name
 +
yum search <packagename>                lists all packages in all repos matching packagename
 +
yum --enablerepo=<reponame> <command>  enables a repo not normally enabled
 +
 +
====SME specific====
 +
signal-event post-upgrade performs sme to go through templates
 +
signal-event reboot                    reboots the server
 +
/etc/e-smith/events/actions/navigation-conf recreates right-hand menu
 +
db config show                 shows the entire server configuration
 +
db config setprop <serversetting> changes your db service configuration
 +
db accounts show <accountname>          shows the account detail
    
----
 
----
 
[[Category:Howto]]
 
[[Category:Howto]]
227

edits

Navigation menu