Linux File Structure


bashrc file

Nice bashrc file bashrc


Linux Commands

Privileges sudo command – run command as root sudo su – open a root shell sudo su user – open a shell as user sudo -k – forget sudo passwords gksudo command – visual sudo dialog (GNOME) kdesudo command – visual sudo dialog (KDE) sudo visudo – edit /etc/sudoers gksudo nautilus – root file manager…


Install from source

download the source code, unzip it and then compile it. wget filelocation tar -xzvf filename cd newfolder ./configure make make install wget http://voxel.dl.sourceforge.net/sourceforge/clamav/clamav-0.95.1.tar.gz tar xzf clamav-0.95.1.tar.gz cd clamav-0.95.1 ./configure && make && make install The ‘&&’ runs commands in a sequence one right after the other So, technically you could install the software like this:…


Error from park wrapper: domain.com is already configured

On a cPanel server if you get the error: Error from park wrapper: domain.com is already configured while adding an add-on domain under cPanel. Make sure to remove the domain.com entries from: /var/named/domain.com.db /etc/httpd/conf/httpd.conf /var/cpanel/users/username  remove (dd) related entries to domain, /etc/userdomains /etc/localdomains vim /etc/named.conf   remove (dd) related entries to domain remove dns entry in…


Collaboration with screen

Log on another machine and become username you want to collaborate with: # su – david enter the pw Then you ssh into server the client is located on: # ssh [email protected] type yes then type your password Once you are there, you run: # screen -S foo Then you holler at David: “Hey David,…


Clear the terminal window

Try this: # cat /bin/cat Behold! Your terminal looks like garbage. Everything you type looks like you’re looking into the Matrix. What do you do? You type reset. But wait you say, typing reset is too close to typing reboot or shutdown. Your palms start to sweat—especially if you are doing this on a production…


Tree view from the command line

ls -R | grep “:$” | sed -e ‘s/:$//’ -e ‘s/[^-][^/]*//–/g’ -e ‘s/^/ /’ -e ‘s/-/|/’ #!/bin/sh ####################################################### # UNIX TREE # # Version: 2.3 # # File: ~/apps/tree/tree.sh # # By Dem Pilafian # # # # Displays Structure of Directory Hierarchy # # ————————————————- # # This tiny script uses “ls”, “grep”, and…


Linux Distribution Chooser

Which version of linux is best for you? Linux Distribution Chooser


How to Install Anything in Ubuntu Condensed

This is a very condensed excerpt of the excellent article that was posted in amitech.50webs.com ‘How to install ANYTHING in Ubuntu’. Search, install, remove available packages (preferred method) sudo aptitude search ABC sudo aptitude install ABC sudo aptitude remove ABC .deb (you have to take care of dependencies on your own) sudo dpkg -i ABC.deb…