sync

A shell variable may be assigned to by a statement using following syntax: var=value If value is not given, the variable is assigned the null string. In shell program it is quite useful to provide default value for variables. For example consider rsync.sh script: #!/bin/bash RSRC=$1 LOCAL=$2 rsync -avz -e ‘ssh ‘ user@myserver:$RSRC $LOCAL This […]

{ 4 comments }

With FreeBSD version 5.4 and above the booting procedure is slightly changed. The older version of FreeBSD uses the boot -s option at Ok prompt. However, with FreeBSD version FreeBSD 5.4+ you don’t have to type any commands. Here is the procedure to boot FreeBSD into a single user mode to reset root password.

{ 22 comments }

Linux kernel includes magic system request keys. It was originally developed for kernel hackers. However, you can use this hack to reboot, shutdown or halt computer safely (remember safe reboot/shutdown == flush filesystem buffers and unmount file system and then reboot so that data loss can be avoided). This is quite useful when Linux based […]

{ 7 comments }