Changes

Jump to navigation Jump to search
201 bytes added ,  19:37, 21 November 2014
Line 199: Line 199:  
|-
 
|-
 
! COMMAND NAME !! DESCRIPTION
 
! COMMAND NAME !! DESCRIPTION
 +
|-
 +
| /usr/sbin/smbd -V || samba version
 +
|-
 +
| /usr/sbin/httpd -v || apache version
 +
|-
 +
| httpd -t || verify the syntax of the configuration file of apache
 +
|-
 +
| mysql -v || mysql version
 +
|-
 +
| php -v ||  php version
 
|-
 
|-
 
| du -sh /* || shows your folder sizes by directory in the root (you can adapt to your directory path)  
 
| du -sh /* || shows your folder sizes by directory in the root (you can adapt to your directory path)  
Line 207: Line 217:  
|-
 
|-
 
| uname -a || kernel release version
 
| uname -a || kernel release version
|-
  −
| /usr/sbin/smbd -V || samba version
  −
|-
  −
| /usr/sbin/httpd -v || apache version
  −
|-
  −
| mysql -v || mysql version
  −
|-
  −
| php -v ||  php version
   
|-
 
|-
 
| mv || moves or renames a file
 
| mv || moves or renames a file
Line 230: Line 232:  
| top -i ||  shows only active processes
 
| top -i ||  shows only active processes
 
|-
 
|-
| htop  || shows processes (more versatile than top)
+
| htop  || shows processes (more versatile than top)
 
|-
 
|-
 
| iptraf || shows network info
 
| iptraf || shows network info
Line 236: Line 238:  
| mc -d  || show midnight commander (cli file browser) to navigate through system easily
 
| mc -d  || show midnight commander (cli file browser) to navigate through system easily
 
|-
 
|-
| host -t mx aol.com || shows the mx records for aol.com
+
| host -t mx aol.com || shows the mx records for aol.com
 +
|-
 +
| dig any aol.com || show all dns records for aol.com (you can choose the dns server by adding its IP or hostname : '@8.8.4.4')
 
|-
 
|-
 
| net groupmap list || shows samba mappings to nt groups
 
| net groupmap list || shows samba mappings to nt groups
Line 246: Line 250:  
| grep -nsr "casesensitivesearch" /path/to/dir || finds all documents containing the criteria in a dir
 
| grep -nsr "casesensitivesearch" /path/to/dir || finds all documents containing the criteria in a dir
 
|-
 
|-
| grep -nsr server-manager.jpg  /etc/e-smith/ || search the file server-manager.jpg in the path directory /etc/e-smith
+
| grep -nsri server-manager.jpg  /etc/e-smith/ || search the file server-manager.jpg in the path directory /etc/e-smith
 
|-
 
|-
 
| tail -f /var/log/<LOGFILE> || realtime viewing of your log file
 
| tail -f /var/log/<LOGFILE> || realtime viewing of your log file

Navigation menu