Find the number of running processes on your system
Answer:
With a simple command, you can find the number of running processes on your system.
# ps ax | wc -l | tr -d " "
64
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Find the number of running processes on your system
Answer:
With a simple command, you can find the number of running processes on your system.
# ps ax | wc -l | tr -d " "
64
How to list directories in Linux?
Answer:
To list directories in Linux using command.
# ls -d /tmp
Rename directory in Linux
Answer
The easiest way to rename a directory in Linux is to move the directory , using the mv command.
e.g.
# mv old_directory new_directory
Install mlocate for quick file search in Linux
Answer:
mlocate is a useful tool for quickly find files on the filesystem based on their name.
To install
# sudo apt-get install mlocate
After install, you would need to build the database for the first time
# sudo updatedb&
Now the database building/indexing is running in the background, when it is finished, you can use the locate command to lookup file in your filesystem.
# locate SHA1.pm
/usr/lib/perl5/Digest/SHA1.pm
Audible ping
Answer:
Sometimes you want to listen your machine pinging another machine (remote machine), especially you want to know when the remote machine is alive when you have issued a reboot.
It is easy with the ping command.
# ping -a google.com
Open your speaker to listen.