Archive for the ‘linux’ Category

See which files has a process open

Command: lsof -p processID
Example: lsof -p 4048
More info, source: http://forum.ensim.com/showthread.php?t=18798

More »

How to calculate directory size on linux

More »

How to add user (useradd, adduser) Linux

/usr/sbin/useradd -g groupname username
more info here

More »

Downlad a file via http in Linux

wget
Example: wget http://wilmer.gaast.net/downloads/axel-1.0b.tar.gz

More »

recursive chown command in Linux

cd /usr/tom
chown -R tom:group *

More »

How to unzip a file in Linux

All of the commands below assume that you are within the same directory that the compressed file is in.
Type ls {enter} to be sure
How to unzip a .tar.gz/.tgz file?
To extract .tar.gz or .tgz files, run the following command in a terminal:
tar -zxvf file.tar.gz (or file.tgz)
This will normally create a new directory based on the [...]

More »