Linux and Unix

Specify section number with Unix man (manual) command

Sometimes, there are multiple man pages under the same name, identified by section numbers. For e...

Bash scripting

Learning Shell Scripting Language: A Guide from Newbies to System Administrator – October 3, 201...

lsof, the least talked about Unix tool

Apparently this is one of the least talked about, but most useful Linux/Unix tools.lsof lists inf...

In Unix, what do I do when a file I want to edit in vi says "Line too long"?

In Unix, when the vi editor says “line too long” it’s usually because it was copied up from a Mac...

How can I check/verify that Red Hat Enterprise Linux is up-to-date for Daylight Savings Time

As the root user, enter the following at the command line:$ zdump -v /etc/localtime | grep 2007Yo...

15 Basic ‘ls’ Command Examples in Linux

I learned at least three things from this list, and I’ve been using ls for years.15 Basic ‘ls’ Co...

cron job examples

Here are some interesting examples of cron job use. http://www.thegeekstuff.com/2009/06/15-practi...

adding date to bash history command

Coming from Solaris to Linux, one thing I’ve missed for years was that the Linux bash history com...

How do I extract certain columns from a text file in Unix?

Somehow I can never remember the cut command in Unix. But I occasionally want to remove certain c...

Command Line Tools to Monitor Linux Performance

If you have any tools for monitoring Linux, or have comments or limitations on these, please add ...

Awk Explained

Awk is a Unix tool that can be very useful for dealing with text but can be hard to understand. H...

Finding most recently changed files in Unix

How do I find the most recently changed files in a set of subdirectories on Unix or Linux?Answer ...

Thin Client technology - Linux Terminal Server Project HOWTO

The text below was copied with permission from post by Harry Mangalam, UCI, to UC-CSC Mailing Lis...

combining unix stderr output with stdout

The problem is that when I run script x and redirect it to a file, all of the error messages come...

How do I keep color output when paginating shell output through less?

Let’s say that you like the color output that comes out of ls (different colors for different fil...

Unix Cheat Sheets and Tricks

While Unix is an extremely flexible, powerful, and stable operating system, mastering it can requ...

vi editing notes

vi is a Unix text editor that is almost always available, on any Unix or Linux system. Knowing ho...

Linux scp command examples

I’ve used scp for years, but didn’t know many of these options. The compress-before-transferring...

diff and patch

The Ten Minute Guide to diff and patch Using diff and patch

UNIX Tutorials

Learn UNIX in 10 minutesUNIX Tutorial for BeginnersHow To Look Like A UNIX GuruBest Practices Lea...

Linux tee command

The Linux “tee” command is extremely useful in the right situation. This article gives some good ...

Manipulating data on Linux

This is an introduction to those using Linux for data analysis for the first time.It came from a ...

Advantages of less over more (UNIX)

This article is intended to provided reasons to use the UNIX program less over its predicessor mo...

Case-insensitive searching in vi

By default, all searches in vi are case-sensitive. To do a case-insensitive search, go into comma...

Customizing vi

The Unix editor vi lets you customize its behavior in a numer of ways. There are two ways to cust...

PHP Client can break `less`

When you do php through command line (i.e. `php somescript.php`) and you pipe it to less (i.e. `p...

How to synchronize files and directories from one location to another on Unix

Although tar can be used to synchronize/copy files/directories from one location to another (i.e....

avoiding increasing indents while pasting into vi

When pasting text into a vi editing screen, sometimes you’ll get each line increasingly indented ...

SAS on 64b Ubuntu Linux

This was contributed by a colleague from UCI, Harry Mangalam.Having spent 3 days debugging this, ...

Ruby one-liner to count logins in Linux last command

count logins in last commandIf you want to take the output of the Linux last command, and get a c...

Linux performance analysis in 60 seconds

Here’s an intro to understanding what’s going on with a Linux server, quickly.http://techblog.net...

Reasons to Use Vim over Vi

This page Difference Between VIM and vi goes over some of the advantages of vim over vi. (Note: ...

Unix grep, find and maxdepth

I’m writing this so I can find it next time I want to do this, and so my student programmers can ...

Useful Commands for Vi

The page is meant to document some of the more useful, but obscure commands in vi. For commands e...

using find and chmod together in Unix

In Unix, if you need to clear up a set of subdirectories to see what permissions or ownership of ...

finding words in binary files

In Unix the strings -a command will output all the text strings in a binary file.Solaris man page...

grep tricks

I’ve been using grep (Global Regular Expression Print) to search files on Unix for years and neve...

Location of the sudo log file

The log file contains the commands issued along with the issuers’ user names. Distribution Lo...