<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-32606402</id><updated>2011-07-28T17:09:11.368-07:00</updated><category term='Akshay Kumar'/><category term='Akshay Khanna'/><category term='Tees Maar Khan'/><category term='Farah Khan'/><category term='Katrina Kaif'/><title type='text'>linuxwebadmin</title><subtitle type='html'>Basic guides, howto and commands for Linux System Administrator.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxwebadmin.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32606402/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://linuxwebadmin.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mitul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-32606402.post-7260694615735020555</id><published>2010-10-14T15:23:00.001-07:00</published><updated>2010-10-14T15:23:53.020-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tees Maar Khan'/><category scheme='http://www.blogger.com/atom/ns#' term='Farah Khan'/><category scheme='http://www.blogger.com/atom/ns#' term='Katrina Kaif'/><category scheme='http://www.blogger.com/atom/ns#' term='Akshay Kumar'/><category scheme='http://www.blogger.com/atom/ns#' term='Akshay Khanna'/><title type='text'>Tees Maar Khan's Photos</title><content type='html'>     &lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p&gt;&lt;a href='http://images.postling.com/a/a42/g_fullxfull.5198.jpg'&gt;&lt;img src='http://images.postling.com/a/a42/g_400xN.5198.jpg'/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;	Tees Maar Khan is a forthcoming Bollywood movie directed by Farah Khan. The film features Akshay Kumar, Katrina Kaif and Akshay Khanna in lead roles.&lt;/p&gt;&lt;/div&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32606402-7260694615735020555?l=linuxwebadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwebadmin.blogspot.com/feeds/7260694615735020555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32606402&amp;postID=7260694615735020555' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32606402/posts/default/7260694615735020555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32606402/posts/default/7260694615735020555'/><link rel='alternate' type='text/html' href='http://linuxwebadmin.blogspot.com/2010/10/tees-maar-khan-photos.html' title='Tees Maar Khan&amp;#39;s Photos'/><author><name>Mitul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32606402.post-116723349786098954</id><published>2006-12-27T07:31:00.000-08:00</published><updated>2006-12-27T07:31:37.863-08:00</updated><title type='text'>/proc file system</title><content type='html'>One of the primary function of porc filesystem to control the access to physical devices on the &lt;br /&gt;&lt;br /&gt;server and schedule when and how processes interact with these devices.&lt;br /&gt;&lt;br /&gt;Under Linux, all data are stored as files. The /proc/ directory contains another type of file &lt;br /&gt;&lt;br /&gt;called a virtual file. Hence, proc is known as virtual filesystem.&lt;br /&gt;&lt;br /&gt;I have described some important proc files and directories here for system administration usage:&lt;br /&gt;&lt;br /&gt;Some of the directories from /proc&lt;br /&gt;&lt;br /&gt;Quote&lt;br /&gt;&lt;br /&gt;asound&lt;br /&gt;bus&lt;br /&gt;driver&lt;br /&gt;fs&lt;br /&gt;ide&lt;br /&gt;irq&lt;br /&gt;net&lt;br /&gt;sys&lt;br /&gt;sysvipc&lt;br /&gt;tty&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Each time a new process is created, an entry in /proc is created.The name of the directory entry &lt;br /&gt;&lt;br /&gt;corresponds to the process identification number (PID) of the created process, so, for example, &lt;br /&gt;&lt;br /&gt;a process with a PID of 5985 will have a corresponding directory entry of /proc/5985/.&lt;br /&gt;&lt;br /&gt;Note: /usr/bin/procinfo - Shows system status gathered from /proc&lt;br /&gt;&lt;br /&gt;These directories are called process directories, as they refer to a process's ID and contain &lt;br /&gt;&lt;br /&gt;information specific to that process&lt;br /&gt;&lt;br /&gt;* cmdline — Contains the command line arguments that started the process.&lt;br /&gt;* cpu — Provides specific information about the utilization of each of the system's CPUs&lt;br /&gt;* cwd — A link to the current working directory for the process&lt;br /&gt;* environ — Gives a list of the environment variables for the proces&lt;br /&gt;* exe — A link to the executable of this process&lt;br /&gt;* fd — A directory containing all of the file descriptors for a particular process&lt;br /&gt;* maps — Contains memory maps to the various executables and library files associated &lt;br /&gt;&lt;br /&gt;with this process.&lt;br /&gt;* mem — The memory held by the process.&lt;br /&gt;* root — A link to the root directory of the process&lt;br /&gt;* stat — A status of the process&lt;br /&gt;* statm — A status of the memory in use by the process&lt;br /&gt;* status - Same as stat and statm but in formated way.&lt;br /&gt;&lt;br /&gt;/proc/cmdline&lt;br /&gt;The content of /proc/cmdline is the kernel parameters you pass during boot. &lt;br /&gt;The easiest way to check which boot parameters are passed to the kernel is to execute cat &lt;br /&gt;&lt;br /&gt;/proc/cpuinfo&lt;br /&gt;Information about the processor, such as its type, make, model, and&lt;br /&gt;performance.&lt;br /&gt;&lt;br /&gt;/proc/devices&lt;br /&gt;List of device drivers configured into the currently running kernel.&lt;br /&gt;&lt;br /&gt;/proc/dma&lt;br /&gt;Shows which DMA channels are being used at the moment.&lt;br /&gt;&lt;br /&gt;/proc/filesystems&lt;br /&gt;Filesystems configured into the kernel&lt;br /&gt;&lt;br /&gt;/proc/interrupts&lt;br /&gt;Shows which interrupts are in use, and how many of each there have been&lt;br /&gt;&lt;br /&gt;/proc/ioports&lt;br /&gt;Which I/O ports are in use at the moment.&lt;br /&gt;&lt;br /&gt;/proc/loadavg &lt;br /&gt;The /proc/loadavg file contains information about the system load. The first three numbers &lt;br /&gt;&lt;br /&gt;represent the number of active tasks on the system—processes that are actually running&lt;br /&gt;&lt;br /&gt;/proc/uptime&lt;br /&gt;The /proc/uptime file contains the length of time since the system was booted, as well as the &lt;br /&gt;&lt;br /&gt;amount of time since then that the system has been idle. Both are given as floating-point &lt;br /&gt;&lt;br /&gt;values, in seconds.&lt;br /&gt;&lt;br /&gt;/proc/ mdstat &lt;br /&gt;The /proc/ mdstat file shows no active RAID devices:&lt;br /&gt;&lt;br /&gt;/proc/meminfo &lt;br /&gt;cat /proc/meminfo | grep MemTotal&lt;br /&gt;This /proc/meminfo shows the memory status in the form of both high-level and low-level &lt;br /&gt;&lt;br /&gt;statistics. &lt;br /&gt;&lt;br /&gt;/proc/misc&lt;br /&gt;Miscellaneous pieces of information. This is for information that has no real place within the &lt;br /&gt;&lt;br /&gt;rest of the proc filesystem&lt;br /&gt;&lt;br /&gt;/proc/modules&lt;br /&gt;Kernel modules currently loaded. Same as 'lsmod' command&lt;br /&gt;&lt;br /&gt;/proc/mounts&lt;br /&gt;Shows the list of mounted filesystems&lt;br /&gt;&lt;br /&gt;/proc/partitions&lt;br /&gt;Shows all partitions in the disk.&lt;br /&gt;&lt;br /&gt;/proc/pci&lt;br /&gt;Information about pci bus&lt;br /&gt;&lt;br /&gt;/proc/swaps&lt;br /&gt;Display swap information.&lt;br /&gt;&lt;br /&gt;/proc/version&lt;br /&gt;The kernel version.&lt;br /&gt;&lt;br /&gt;Netwok Parameter in /proc/net&lt;br /&gt;&lt;br /&gt;/proc/net/arp - Display arp table. Similar to arp command.&lt;br /&gt;/proc/net/dev - Shows network devices with statastics.&lt;br /&gt;/proc/net/if_inet6 - List of IPv6 interface addresses&lt;br /&gt;/proc/ip_tables_targets - Parameter shows related to Iptables&lt;br /&gt;/proc/ip_tables_names - Parameter shows related to Iptables&lt;br /&gt;/proc/netstat - network statatics configured at kernel level.&lt;br /&gt;/proc/route - network route, use route command -n option.&lt;br /&gt;&lt;br /&gt;/proc/sys/fs/file-max&lt;br /&gt;Max file files Limit&lt;br /&gt;&lt;br /&gt;# cat /proc/sys/fs/file-max&lt;br /&gt;52224&lt;br /&gt;&lt;br /&gt;/proc/sys/kernel/sysrq&lt;br /&gt;System Request Key on a running kernel.&lt;br /&gt;&lt;br /&gt;/proc/sys/kernel/acct&lt;br /&gt;    This file contains three numbers: highwater, lowwater and frequency. If BSD-style process &lt;br /&gt;&lt;br /&gt;accounting is enabled these values control its behaviour. If free space on filesystem where the &lt;br /&gt;&lt;br /&gt;log lives goes below lowwater percent accounting suspends. If free space gets above highwater &lt;br /&gt;&lt;br /&gt;percent accounting resumes. Frequency determines how often the kernel checks the amount of free &lt;br /&gt;&lt;br /&gt;space (value is in seconds). Default values are 4, 2 and 30. That is, suspend accounting if &lt;= &lt;br /&gt;&lt;br /&gt;2% of space is free; resume it if &gt;= 4% of space is free; consider information about amount of &lt;br /&gt;&lt;br /&gt;free space valid for 30 seconds.&lt;br /&gt;&lt;br /&gt;/proc/sys/kernel/hostname&lt;br /&gt;This file can be used to set the NIS/YP hostname in exactly the same way as the command &lt;br /&gt;&lt;br /&gt;hostname.&lt;br /&gt;&lt;br /&gt;/proc/sys/kernel/domainname&lt;br /&gt;This file can be used to set the NIS/YP domainname in exactly the same way as the command &lt;br /&gt;&lt;br /&gt;domainname&lt;br /&gt;&lt;br /&gt;/proc/sys/kernel/osrelease&lt;br /&gt;The running kernel version.&lt;br /&gt;&lt;br /&gt;/proc/sys/kernel/ostype&lt;br /&gt;Guess!!! what its Linux only&lt;br /&gt;&lt;br /&gt;/proc/sys/kernel/version&lt;br /&gt;Example: #2 SMP PREEMPT Sun May 21 10:47:59 CEST 2006&lt;br /&gt;#2 means that this is the 2nd kernel built from this source base and the date after it indicates &lt;br /&gt;&lt;br /&gt;the time the kernel was built. The only way to tune this info is to rebuild the kernel.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/proc/sys/net - All TCP and network configuration parameter for kernel.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32606402-116723349786098954?l=linuxwebadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://forums.linuxwebadmin.info/index.php/topic,89.0.html' title='/proc file system'/><link rel='replies' type='application/atom+xml' href='http://linuxwebadmin.blogspot.com/feeds/116723349786098954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32606402&amp;postID=116723349786098954' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32606402/posts/default/116723349786098954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32606402/posts/default/116723349786098954'/><link rel='alternate' type='text/html' href='http://linuxwebadmin.blogspot.com/2006/12/proc-file-system.html' title='/proc file system'/><author><name>Mitul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32606402.post-116723242095392038</id><published>2006-12-27T07:13:00.000-08:00</published><updated>2006-12-27T07:13:40.953-08:00</updated><title type='text'>Excluding specific file types using GNU tar</title><content type='html'>&lt;b&gt;Excluding specific file types using GNU  tar&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;You can specifically stop tar from archiving certain file types  based on patterns (shell wildcards). For example, to archive everything in a  directory excluding PDF and DOC files:&lt;br /&gt;&lt;br /&gt; &lt;div class="quoteheader"&gt; &lt;/div&gt;  &lt;div class="quote"&gt;&lt;strong&gt;tar czvf archive.tgz --exclude=*.doc --exclude=*.pdf  *&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;That creates a gzipped tarball with everything in the  current directory and do not include PDF and DOC files. You can specify multiple  --exclude parameters.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32606402-116723242095392038?l=linuxwebadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://forums.linuxwebadmin.info/index.php/topic,80.0.html' title='Excluding specific file types using GNU tar'/><link rel='replies' type='application/atom+xml' href='http://linuxwebadmin.blogspot.com/feeds/116723242095392038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32606402&amp;postID=116723242095392038' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32606402/posts/default/116723242095392038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32606402/posts/default/116723242095392038'/><link rel='alternate' type='text/html' href='http://linuxwebadmin.blogspot.com/2006/12/excluding-specific-file-types-using.html' title='Excluding specific file types using GNU tar'/><author><name>Mitul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32606402.post-116723236387677964</id><published>2006-12-27T07:12:00.000-08:00</published><updated>2006-12-27T07:12:43.883-08:00</updated><title type='text'>Common Linux Shell Commands</title><content type='html'>&lt;span style="text-decoration: underline;"&gt;&lt;b&gt;Common Linux Shell Commands:  &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ls :&lt;/b&gt; list files/directories in a directory, comparable  to dir in windows/dos.&lt;br /&gt;ls -al :[/b] shows all files (including ones that  start with a period), directories, and details attributes for each file. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;cd :&lt;/b&gt; change directory · · cd /usr/local/apache : go to  /usr/local/apache/ directory&lt;br /&gt;&lt;b&gt;cd ~ : &lt;/b&gt;go to your home directory &lt;br /&gt;&lt;b&gt;cd - : &lt;/b&gt;go to the last directory you were in&lt;br /&gt;&lt;b&gt;cd .. :&lt;/b&gt; go up a  directory cat : print file contents to the screen&lt;br /&gt;&lt;br /&gt;&lt;b&gt;cat  filename.txt&lt;/b&gt; : cat the contents of filename.txt to your screen &lt;br /&gt;&lt;br /&gt;&lt;b&gt;tail :&lt;/b&gt; like cat, but only reads the end of the file&lt;br /&gt;&lt;b&gt;tail  /var/log/messages : &lt;/b&gt;see the last 20 (by default) lines of /var/log/messages &lt;br /&gt;&lt;b&gt;tail -f /var/log/messages : &lt;/b&gt;watch the file continuously, while it's  being updated&lt;br /&gt;&lt;b&gt;tail -200 /var/log/messages : &lt;/b&gt;print the last 200 lines  of the file to the screen&lt;br /&gt;&lt;br /&gt;&lt;b&gt;more : &lt;/b&gt;like cat, but opens the file one  screen at a time rather than all at once&lt;br /&gt;&lt;b&gt;more /etc/userdomains :  &lt;/b&gt;browse through the userdomains file. hit Spaceto go to the next page, q to  quit&lt;br /&gt;&lt;br /&gt;&lt;b&gt;pico : &lt;/b&gt;friendly, easy to use file editor&lt;br /&gt;&lt;b&gt;pico  /home/burst/public_html/index.html : &lt;/b&gt;edit the index page for the user's  website.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;vi : &lt;/b&gt;another editor, tons of features, harder to use at  first than pico&lt;br /&gt;&lt;b&gt;vi /home/burst/public_html/index.html : &lt;/b&gt;edit the  index page for the user's website.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;grep : &lt;/b&gt;looks for patterns in  files&lt;br /&gt;&lt;b&gt;grep root /etc/passwd : &lt;/b&gt;shows all matches of root in  /etc/passwd&lt;br /&gt;&lt;b&gt;grep -v root /etc/passwd : &lt;/b&gt;shows all lines that do not  match root&lt;br /&gt;&lt;br /&gt;&lt;b&gt;touch : &lt;/b&gt;create an empty file&lt;br /&gt;&lt;b&gt;touch  /home/burst/public_html/404.html &lt;/b&gt;: create an empty file called 404.html in  the directory /home/burst/public_html/&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ln : &lt;/b&gt;create's "links"  between files and directories&lt;br /&gt;&lt;b&gt;ln -s /usr/local/apache/conf/httpd.conf  /etc/httpd.conf : &lt;/b&gt;Now you can edit /etc/httpd.conf rather than the original.  changes will affect the orginal, however you can delete the link and it will not  delete the original.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;rm : &lt;/b&gt;delete a file&lt;br /&gt;&lt;b&gt;rm filename.txt :  &lt;/b&gt;deletes filename.txt, will more than likely ask if you really want to delete  it&lt;br /&gt;&lt;b&gt;rm -f filename.txt : &lt;/b&gt;deletes filename.txt, will not ask for  confirmation before deleting.&lt;br /&gt;&lt;b&gt;rm -rf tmp/ : &lt;/b&gt;recursively deletes the  directory tmp, and all files in it, including subdirectories. BE VERY CAREFULL  WITH THIS COMMAND!!!&lt;br /&gt;&lt;br /&gt;&lt;b&gt;last : &lt;/b&gt;shows who logged in and  when&lt;br /&gt;&lt;b&gt;last -20 : &lt;/b&gt;shows only the last 20 logins&lt;br /&gt;&lt;b&gt;last -20 -a :  &lt;/b&gt;shows last 20 logins, with the hostname in the last field&lt;br /&gt;&lt;br /&gt;&lt;b&gt;w :  &lt;/b&gt;shows who is currently logged in and where they are logged in  from.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;netstat : &lt;/b&gt;shows all current network  connections.&lt;br /&gt;&lt;b&gt;netstat -an : &lt;/b&gt;shows all connections to the server, the  source and destination ips and ports.&lt;br /&gt;&lt;b&gt;netstat -rn : &lt;/b&gt;shows routing  table for all ips bound to the server.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;top : &lt;/b&gt;shows live system  processes in a nice table, memory information, uptime and other useful info.  This is excellent for managing your system processes, resources and ensure  everything is working fine and your server isn't bogged down.&lt;br /&gt;top then type  Shift + M to sort by memory usage or Shift + P to sort by CPU  usage&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ps: &lt;/b&gt;ps is short for process status, which is similar to the  top command. It's used to show currently running processes and their PID.&lt;br /&gt;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).&lt;br /&gt;ps U  username : shows processes for a certain user&lt;br /&gt;&lt;b&gt;ps aux : &lt;/b&gt;shows all  system processes&lt;br /&gt;&lt;b&gt;ps aux --forest &lt;/b&gt;: shows all system processes like the  above but organizes in a hierarchy that's very useful!&lt;br /&gt;&lt;br /&gt;&lt;b&gt;file :  &lt;/b&gt;attempts to guess what type of file a file is by looking at it's content. &lt;br /&gt;&lt;b&gt;file * : &lt;/b&gt;prints out a list of all files/directories in a directory &lt;br /&gt;&lt;br /&gt;&lt;b&gt;du :&lt;/b&gt; shows disk usage.&lt;br /&gt;&lt;b&gt;du -sh : &lt;/b&gt;shows a summary, in  human-readble form, of total disk space used in the current directory, including  subdirectories.&lt;br /&gt;&lt;b&gt;du -sh * : &lt;/b&gt;same thing, but for each file and  directory. helpful when finding large files taking up space.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;wc :  &lt;/b&gt;word count&lt;br /&gt;&lt;b&gt;wc -l filename.txt : &lt;/b&gt;tells how many lines are in  filename.txt&lt;br /&gt;&lt;br /&gt;&lt;b&gt;cp : &lt;/b&gt;copy a file&lt;br /&gt;&lt;b&gt;cp filename filename.backup  : &lt;/b&gt;copies filename to filename.backup&lt;br /&gt;&lt;b&gt;cp -a /home/burst/new_design/*  /home/burst/public_html/ : &lt;/b&gt;copies all files, retaining permissions form one  directory to another.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;kill: &lt;/b&gt;terminate a system process&lt;br /&gt;kill -9  PID EG: kill -9 431&lt;br /&gt;kill PID EG: kill 10550&lt;br /&gt;Use top or ps ux to get system  PIDs (Process IDs)&lt;br /&gt;&lt;br /&gt;EG:&lt;br /&gt;PID TTY TIME COMMAND&lt;br /&gt;10550 pts/3 0:01  /bin/csh&lt;br /&gt;&lt;br /&gt;10574 pts/4 0:02 /bin/csh&lt;br /&gt;&lt;br /&gt;10590 pts/4 0:09 APP &lt;br /&gt;&lt;br /&gt;Each line represents one process, with a process being loosely defined  as a running instance of a program. The column headed PID (process ID) shows the  assigned process numbers of the processes. The heading COMMAND shows the  location of the executed process.&lt;br /&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;b&gt;Putting commands  together&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Often you will find you need to use different  commands on the same line. Here are some examples. Note that the | character is  called a pipe, it takes date from one program and pipes it to  another.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&gt; &lt;/b&gt;means create a new file, overwriting any content  already there.&lt;br /&gt;&lt;b&gt;&gt;&gt; &lt;/b&gt;means tp append data to a file, creating a  newone if it doesn not already exist.&lt;br /&gt;&lt;b&gt;&lt;&lt;/b&gt; send input from a file  back into a command.&lt;br /&gt;&lt;br /&gt; &lt;div class="quote"&gt;&lt;strong&gt;grep User /usr/local/apache/conf/httpd.conf |more  &lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;This will dump all lines that match User from the httpd.conf,  then print the results to your screen one page at a time.&lt;br /&gt;&lt;br /&gt; &lt;div class="quoteheader"&gt;&lt;strong&gt;last -a &gt; /root/lastlogins.tmp  &lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;This will print all the current login history to a file  called lastlogins.tmp in /root/&lt;br /&gt;&lt;br /&gt; &lt;div class="quote"&gt;&lt;strong&gt;tail -10000 /var/log/exim_mainlog |grep domain.com  |more&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;This will grab the last 10,000 lines from  /var/log/exim_mainlog, find all occurances of domain.com (the period represents  'anything',  -- comment it out with a so it will be interpretted literally),  then send it to your screen page by page.&lt;br /&gt; &lt;div class="quoteheader"&gt; &lt;/div&gt;  &lt;div class="quote"&gt;&lt;strong&gt;netstat -an |grep :80 |wc -l&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;Show how  many active connections there are to apache (httpd runs on port 80)&lt;br /&gt;&lt;br /&gt; &lt;div class="quoteheader"&gt;&lt;strong&gt;mysqladmin processlist |wc -l&lt;/strong&gt;&lt;/div&gt;  &lt;p&gt;Show how many current open connections there are to mysql &lt;/p&gt;  &lt;p&gt;Ref: &lt;a href="http://forums.linuxwebadmin.info/index.php/topic,14.0.html"&gt;http://forums.linuxwebadmin.info/index.php/topic,14.0.html&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32606402-116723236387677964?l=linuxwebadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://forums.linuxwebadmin.info/index.php/topic,14.0.html' title='Common Linux Shell Commands'/><link rel='replies' type='application/atom+xml' href='http://linuxwebadmin.blogspot.com/feeds/116723236387677964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32606402&amp;postID=116723236387677964' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32606402/posts/default/116723236387677964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32606402/posts/default/116723236387677964'/><link rel='alternate' type='text/html' href='http://linuxwebadmin.blogspot.com/2006/12/common-linux-shell-commands.html' title='Common Linux Shell Commands'/><author><name>Mitul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32606402.post-116723212212005765</id><published>2006-12-27T07:05:00.000-08:00</published><updated>2006-12-27T07:08:42.200-08:00</updated><title type='text'>How to find  which versions are required while upgrading your kernel / OS</title><content type='html'>How to find a version some tools which are required while upgrading your kernel  / OS:&lt;br /&gt;&lt;br /&gt;&lt;div class="post" id="msg_364"&gt;How to find a version some tools which are required while upgrading your kernel / OS&lt;br /&gt;&lt;div class="codeheader"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="code"&gt;&lt;pre style="margin-top: 0pt; display: inline;"&gt;    &lt;span style="font-weight: bold;"&gt; Name:             How to find version:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;     Gnu C Compiler     gcc --version&lt;br /&gt;     Gnu Make           make --version&lt;br /&gt;     binutils           ld -v&lt;br /&gt;     util-linux         fdformat --version&lt;br /&gt;     module-init-tools  depmod -V&lt;br /&gt;     procps             ps --version&lt;br /&gt;     [procps 2.x] [procps 3.x]&lt;br /&gt;&lt;br /&gt;     e2fsprogs          tune2fs&lt;br /&gt;     jfsutils           fsck.jfs -V&lt;br /&gt;     reiserfsprogs      reiserfsck -V 2&gt;&amp;1 | grep reiserfsprogs&lt;br /&gt;     xfsprogs           xfs_db -V&lt;br /&gt;     nfs-utils          showmount --version&lt;br /&gt;     pcmcia-cs          cardmgr -V&lt;br /&gt;     quota-tools        quota -V&lt;br /&gt;     PPP                ppd --version&lt;br /&gt;     isdn4k-utils       isdnctrl 2&gt;&amp;1 | grep version&lt;br /&gt;     oprofile           oprofiled --version&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;         &lt;img src="http://forums.linuxwebadmin.info/Themes/smfone11rc3_blue/images/icons/modify_inline.gif" alt="" id="modify_button_364" style="cursor: pointer;" onclick="modify_msg('364', '4af8d6e75f04e7b8facf74f227c98c63')" align="right" /&gt;                                   &lt;table style="table-layout: fixed;" border="0" width="100%"&gt; &lt;tbody&gt;&lt;tr&gt;         &lt;td colspan="2" class="smalltext" align="left" width="100%"&gt;         &lt;br /&gt;&lt;/td&gt;        &lt;/tr&gt;&lt;tr&gt;         &lt;td class="smalltext" id="modified_364" align="left" valign="bottom"&gt;         &lt;br /&gt;     &lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32606402-116723212212005765?l=linuxwebadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://forums.linuxwebadmin.info/index.php/topic,150.0.html' title='How to find  which versions are required while upgrading your kernel / OS'/><link rel='replies' type='application/atom+xml' href='http://linuxwebadmin.blogspot.com/feeds/116723212212005765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32606402&amp;postID=116723212212005765' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32606402/posts/default/116723212212005765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32606402/posts/default/116723212212005765'/><link rel='alternate' type='text/html' href='http://linuxwebadmin.blogspot.com/2006/12/how-to-find-which-versions-are.html' title='How to find  which versions are required while upgrading your kernel / OS'/><author><name>Mitul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
