Unix

How to restart/stop/start networking in FreeBSD

FreeBSD® is an advanced operating system for x86 compatible (including Pentium® and Athlon™), amd64 compatible (including Opteron™, Athlon™64, and EM64T), UltraSPARC®, IA-64, PC-98 and ARM architectures. It is derived from BSD, the version of UNIX® developed at the University of California, Berkeley. It is developed… Read More »How to restart/stop/start networking in FreeBSD

Linux/Unix coreutils command ‘paste’ to merge lines of files

Unix and Linux GNU coreutils command paste can be useful to merge corresponding or subsequent lines of files. Here is simple example of it’s usage: viper@viper-laptop:~$ cat /tmp/test pop pop1 pop2 viper@viper-laptop:~$ cat /tmp/test1 1 2 3 4 viper@viper-laptop:~$ paste /tmp/test /tmp/test1 pop 1 pop1… Read More »Linux/Unix coreutils command ‘paste’ to merge lines of files

Two-way conversion of Unix time (seconds since 1970) and regular time

I found using of Unix time to be very useful in various shell scripts and here are two simple commands to convert Unix/Linux date command to Unix time format and back to regular formating: To convert Unix time to simple (regular) time please use: date… Read More »Two-way conversion of Unix time (seconds since 1970) and regular time