12 FAQ tagged "grep_command"
Viewing 1-10 of 12 FAQ -- Linux / UNIX: Getting information about reboots and shutdowns :
Q. I’d like to monitor my UNIX / Linux server reboot / shutdown usage. How do I get more information about reboot and shutdown command?
A. There is a file called /var/log/wtmp. The pseudo user reboot logs in each time the system is rebooted. Thus last reboot will show a log of all [...] - How to: Find Out Whether a UNIX / Linux Process Is Running or Not :
Q. I’d like to find out if httpd / mysqld or sshd process is running or not under CentOS Linux server. How do I determine whether a process is running or not?
A. You need to use following commands:
[a] ps - It report a snapshot of the current processes
[b] grep - Filter out process names
Find [...] - List or Check Installed Linux Kernels :
Q. How do I list all installed kernel on Linux operating system? How do I find out current kernel version?
A. You can use standard package listing command to list installed kernels.
RedHat / CentOS / RHEL / Fedora Linux user
You need to use standard rpm command to list installed software. Type the following command at [...] - Squid Proxy Sever View logs / log files :
Q. How do I view squid proxy server log files under CentOS Linux server 5.0?
A. squid is a high-performance proxy caching server for web clients, supporting FTP, gopher, and HTTP data objects. Unlike traditional caching software, squid handles all requests in a single, non-blocking, I/O-driven process.
/var/log/squid/ log file directory
The logs are [...] - Redhat / CentOS Linux list all packages available for installation :
Q. How do I list all packages available for installation from Internet using Red Hat Enterprise Linux or CentOS 5?
A. You can yum command and it has option to show a list of all packages that are not presently installed and can be installed via RHN or Internet.
yum list available
yum list available [...] - Linux / UNIX: Find out or determine if process pid is running :
Q. How do I find out my process is running? How do I get pid number for particular process?
A. The easiest way to find out is run ps aux command and grep process name. If you got output along with process name/pid, your process is running.
Task: Find out process pid
Simply use ps command as follows:
ps [...] - Howto use grep command in Linux / UNIX :
Q. How do I use grep command in Linux?
A. grep command searches the given file for lines containing a match to the given strings or words. By default, grep prints the matching lines. Use grep to search for lines of text that match one or many regular expressions, and [...] - How to: Linux or UNIX List just directories or directory names :
Q. How do I list just directory names under Linux?
A. Under Linux or UNIX use ls command to list files and directories. However ls does not have an option to list only directories. You can use combination of ls and grep to list directory names only.
Display or list all directories
Type the following command:
$ ls [...] - Kill process in Linux or terminate a process in UNIX or Linux systems :
Q. How do I kill process in Linux?
A. Linux and all other UNIX like oses comes with kill command. The command kill sends the specified signal (such as kill process) to the specified process or process group. If no signal is specified, the TERM signal is sent.
Kill process using kill command under [...] - Linux display CPU information - number of CPUs and their speed :
Q. How do I display CPU information such as the number of CPUs and their speed?
A. Proc (/proc) file system provides easy information about CPU and their speed.
The proc filesystem is a pseudo-filesystem which is used as an interface to kernel data structures. It is commonly mounted at /proc. Most of [...]
Next Page »
Viewing 1-10 of 12 FAQ - ( see all popular tags )


Recent Comments
Today ~ 3 Comments
Today ~ 57 Comments
Yesterday ~ 9 Comments
Yesterday ~ 7 Comments
Yesterday ~ 1 Comment