Archive for
October, 2008

Using tar to archive files

by
on
October 7, 2008

TAR is the GNU Tape ARchive utility. It is used to pack the contents of multiple files or directories in an archive file called a tarball. Tar can preserve directory organization including file ownership, permissions, links, as well as directory structure. To save space you can optionally enable compression with gzip, bzip2, or another external [...]

Read More
No Comments
commands

View program output with watch

by
on
October 6, 2008

Watch runs a program at regular interval and continuously displays the output. This allows you keep track of the changes that are occurring in the program over time. Run watch in the following way. watch [options] command By default watch updates the command output every 2 seconds. To change this interval us the ‘-n seconds‘ [...]

Read More
No Comments
commands

Format output using printf

by
on
October 4, 2008

printf and its family of functions allow you to easily format string data. There are so many formatting options that it is easy to miss some of its more powerful functionality. Here is a rundown of the more useful features and some examples. The basic printf format. printf(format string, format parameter list); The format string [...]

Read More
No Comments
C

Submit commands as root with sudo

by
on
October 1, 2008

Among the most valuable tools at a Linux administrators disposal is sudo. It lets ordinary users temporarily submit commands as root or another user. To use use this command simply put sudo before any command you want to run with root permissions. sudo command To submit commands as another user use the ‘-u‘ option and [...]

Read More
No Comments
commands
Copyright 2008-2010 WiredRevolution.com. All rights reserved.