≡ Menu

FreeBSD Tutorials and HowTos

Here you will find tutorial about FreeBSD unix operating system such as – configuration of network, PF firewall/packet filtering, NTA, FreeBSD kernel, building and installing packages, storage, networking services, including HTTP/HTTPS, FTP, NFS, SMB, SMTP, SSH, and NTP ( rss/feed ).

How do I find out my DNS server IP address assiged my my ISP under Unix or Linux operating system using command prompt? How do I find preferred dns server under Debian / Ubuntu / Fedora Linux desktop system?
[click to continue…]

I often type the wrong command as follows under Linux bash shell:
rsync -av dir1 user@server1.cyberciti.biz:/path/to/dir1
cp -av file1*.txt file2*.txt /path/to/dest

I need to correct those command as follows:

rsync -av dir5 user@server1.cyberciti.biz:/path/to/dir1
cp -av delta1*.txt delta2*.txt /path/to/dest

How do I replace dir1 with dir5 or file with delta and repeat the last command under bash shell?
[click to continue…]

How do I mirror files from remote ftp server using lftp command? How do put the entier directory from a local disk to a remote ftp server (reverse mirror) using lftp command under Linux and Unix like operating systems?
[click to continue…]

I know wget command can resume downloads. H>ow do I resume partially transferred files using rsync command line under Unix like operating systems?
[click to continue…]

I'm writing a bash wrapper script that will pass arguments to the command. I need to find out the last argument if I call the wrapper as follows:

./wrapper -a -b --longarg=foo thisfilename.txt
./wrapper -a -b thisfilename.txt
./wrapper -a --next=true thisfilename.txt

=> $@ is all of them.
=> $0 is script name.
=> $1 is first arg.

I want thisfilename.txt stored in a shell variable called $last. How do I find the last argument passed to a shell script written in bash or ksh under Unix like operating systems?
[click to continue…]

Firefox Disable / Hide New Tab Page

I've upgraded to Firefox v13. However, I don't like the new tab page. I'm concerned about my privacy. How do disable or hide new tab page while using Firefox browser version 13? How do you get rid of the "new tab" page that shows recently visited pages?
[click to continue…]

Unix Copy Command Examples [ cp command ]

How do I copy files under Unix operating system using ksh or csh or bash shell prompt?
[click to continue…]