Advanced Search
Search Results
32 total results found
My hard disk is dying! How do I make an emergency backup?
Disaster has struck and your hard disk is in its final death throes. No problem, you made a backup last night, right? Of course you did… but a pipe burst and you lost your backup tapes?Assuming that you’re trying to backup a UNIX or Linux system:(if it’s Windo...
My webserver has died! How do I bring it back online in a hurry?
The obvious answer to this is to restore your backup onto a spare server. Or if it’s just a drive failure, the answer would be to restore your backup onto your spare drive. But since you’re reading this instead of restoring your backup, let’s assume that the s...
On a UNIX / Linux system, how do I view which shared libraries a program needs?
To get a list of shared libraries that a program needs:ldd /path/to/programThis will give you a list of the required shared libraries and the paths to the files that are being used for each requirement. If a file cannot be found for a particular requirement, i...
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 file types). But when you have lots of files and want to paginate it through less, you lose the color output. So how do we keep the colors?You need to give the -r fla...
UNIX Tutorials
Learn UNIX in 10 minutesUNIX Tutorial for BeginnersHow To Look Like A UNIX GuruBest Practices Learn 10 Good UNIX Usage Habits Learn 10 More Good UNIX Usage Habits Three Books Every System Administrator Should Read – Matt Frye Linux Magazine -July 1st, 2009 Uni...
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 2007You should see Mar 11 as one of the dates, if not your system needs to be updated. For more info, go here:http://kbase.redhat.com/faq/FAQ_80_7909.shtm
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 1: This will show the most recent 10 files in current directory and below.It supports filenames with spaces. And can be slow with lots of files http://stackoverflo...
Advantages of less over more (UNIX)
This article is intended to provided reasons to use the UNIX program less over its predicessor more.What is less?If you use the whatis program for less on a UNIX terminal you get “opposite of more”. What does this mean? more allows a user to incrementally disp...
Reasons to Use Vim over Vi
This page Difference Between VIM and vi goes over some of the advantages of vim over vi. (Note: the page disappeared, so now we’re pointing at the Internet Archive’s March 2011 cached version.)To list some useful features:Multi-level History Undo – n u (n is ...
Useful Commands for Vi
The page is meant to document some of the more useful, but obscure commands in vi. For commands exclusive to vim see Reasons To Use Vim Over Vi. Please feel free to add commands you would like to see on this page. % move to matching (, {, or [ n G goto...
Awk Explained
Awk is a Unix tool that can be very useful for dealing with text but can be hard to understand. Here are some useful explanations. awk is a beautiful tool Famous Awk One-Liners Explained, Part I 8 Powerful Awk Built-in Variables – FS, OFS, RS, ORS, NR, NF, FIL...
SAS on 64b Ubuntu Linux
This was contributed by a colleague from UCI, Harry Mangalam.Having spent 3 days debugging this, I thought I might make it easier for others who might run into it.SAS 9.2 uses Java for at least some of its plotting routines (minimally the ‘ods graphics’).The 6...
Useful OSS Security Tools
1 – Alienvault – Open Source Security Information Management system – good review in the latest (March 2010) Linux journalFrom the web site: The OSSIM platform consists of a Management Server, and Sensor or “Probe”. A professional version that includes SEM fun...
Location of the sudo log file
The log file contains the commands issued along with the issuers’ user names. Distribution Location Centos /var/log/secure
How to take screenshots
Quick answer: http://take-a-screenshot.org/ (different tabs for different systems, though it looks like it recognizes which system you’re using.)
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 ListI typed up the notes I took as I was evaluating the LTSP for Lab and Office deloyment, added a few introductory paras and got this:http://moo.nac.uci.edu/~hjm/LTS...
Manipulating data on Linux
This is an introduction to those using Linux for data analysis for the first time.It came from a post by UCI colleague Harry Mangalam to UC-CSC Mailing List“As an aid to helping students accomplish the basics on one of our clusters, I’ve written up a doc that ...
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. `php somescript.php | less`), this has the possibility of breaking the functionality of /usr/bin/less. To exit you need to type ‘q’ then hit enter.