Adding user name and password in authentication file in Apache2
root@jupiter:/etc/apache2# htpasswd /etc/apache2/intranet.passwd halvard
This will append the MD5 password with user in file.
Installation of Java on Ubuntu
root@imran-desktop:~# sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
root@imran-desktop:~# java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
Check directory size
du -hs /home/imran/
How to check all installed packaged and version of a specific installed package
dpkg -s apache2
dpkg --list |more
How to Zip and unzipp
#aptitude install zip unzip
zip imran.zip file1 file2 file3
Then you can extract the original files like this:
unzip imran.zip
No comments:
Post a Comment