Thursday, December 30, 2010

Ubuntu Cheat Sheet

Create symbolic link (Sym Link)
To create a symbolic link in Unix or Linux, at the shell prompt, enter the following command:

ln -s {target-filename} {symbolic-filename}
ln -s {target-dir}/ {symbolic-ref}

Check Open Ports
netstat -an | grep "LISTEN "
and
nmap -sS 127.0.0.1
Extract tar.gz

tar -C /myfolder -zxvf yourfile.tar

Search for a file

find path/to/search -name FILE_NAME

Example

find / -name FILE_NAME

Rsync

rsync -r -v -e ssh jerry@openbsd.nixcraft.in:~/webroot.txt /tmp

Examples

This entry is a note to self for being amnesiac

0 comments:

Post a Comment