Tag Archives: linux

Running script in background on linux

If we want to run a script from terminal and be able to close the terminal without killing a script (because terminal would be a parent process, so if it dies, its children die automatically), here is the command: nohup … Continue reading

Posted in Bash, Productivity, Programming, Python, UNIX/Linux, Vim | Tagged , , | Leave a comment

Pulling info about running processes on Ubuntu

To pull process’s id by its name: To get info about the process knowing its PID: To see what process are using a file or directory:

Posted in Programming, UNIX/Linux | Tagged , | Leave a comment

Running Selenium Server on Ubuntu 10.04

I decided to record the process of starting Selenium server as it was not easy to find such info on the fly. I follow instructions of Dan Straw literally: Take this attachment, and save it as /etc/init.d/selenium This script lets … Continue reading

Posted in Bash, Python, Selenium, UNIX/Linux | Tagged , , , , | Leave a comment

How to add a scheduled job on Linux(Ubuntu)

There is a special program called ‘crontab’. Type This will open vim to edit the file with a list of commands that crontab will be executing.

Posted in Productivity, Programming, UNIX/Linux | Tagged , , | Leave a comment

Script to display count of shell commands used most frequently

The credit for this excellent idea is to Matt Might. This perl script calculates the number of occurrencies of bash shell commands stored in ~/.bash_history Save the above script in file “frequency” in some directory under “PATH” variable. cd to … Continue reading

Posted in Bash, UNIX/Linux | Tagged , , , | Leave a comment