All Tips


4

Tip #251   Argument list too long


ls | xargs rm

Sometime there are so many files in a directory than the rm command doesn't work
Read more »

0

Tip #249   Sum up your HDD space

Longish oneliner (I actually wrote it in one line first) for giving you somewhat (mount list is never good enough) accurate sum of your file systems' totals.

Read more »

69

Tip #248   Using FIFOs

If you want to tail the errors on another terminal, just push them to a fifo:

Read more »

12

Tip #247   See your favorite commands

Use the following to see the commands you use most often based on your shell history:

Read more »

0

Tip #246   Dealing with duplicate lines

You can use the 'uniq' command to handle duplicate lines in a file:

Read more »

-7

Tip #245   Alter Process Priority

Ever been on a machine that just wouldn't respond? As soon as you're root, lower the priority of the offending process ID(s) by using the 'renice' command:

Read more »
  • TAGS:

-2

Tip #234   unwrapping ldapsearch's ldif output

I'm working on a project to access data from my corporate Active Directory server using ldapsearch. The version of ldapsearch that comes with Red Hat Enterprise Server spews out LDIF in column truncated format. That is to say it inserts a carriage return at column 80 of the output.

This sed goodie unwraps the ldif output.

UNWRAP=' /^ / {; H; d; }; /^ /! {; x; s/\n //; }; ' Read more »

-9

Tip #233   Remove numbers from history

Use the following command to give a history listing without the numbers for easier copy and pasting:

Read more »

59

Tip #232   Deleting difficult filenames

To delete a file who's file name is a pain to define (eg. ^H^H^H) find it's inode number with the command "ls -il". Use the line below to find and delete the file.
Read more »