Time commands execution

Tag(s):

# Bash built-in time
TIMEFORMAT=%R; time sleep 2s
#2.003
 

Use readlink instead of realpath

Tag(s):

Use readlink instead of realpath because readlink is ubiquitous.

readlink -ev FILE

Mass copy data

Tag(s):

  1. Use cp.
  2. Use rsync to recheck or when cp get interrupted.

Create a mirror

Tag(s):

# Creating tank0 pool with a two disk mirror:
zpool create tank0 mirror /dev/sda /dev/sdb

Replace multiple grep piping

Tag(s):

Replace multiple grep piping with the following because piping is expensive:

Pages

Subscribe to OpenWritings.net RSS