Prashant Mhatre

Make Money, Programming, Bollywood, Marathi

  • You are here: 
  • Home
  • General Purpose Unix Commands

General Purpose Unix Commands

Posted on February 8th, 2008


-- Sponsored Links --



Computer


-- Sponsored Links --


Clear terminal

cls, clear, tput clear

Concatenating files

cat

Splitting Files

split

Numbering lines

nl, cat -n

Zipping file, unzipping files

gzip, gunzip

Converting files in hexadecimal

od

Remove nonprintable characters

tr, strings, col -b

Formats, Word wrapping

fold, nroff, troff

Outputting a part of file: say first 5 lines, last 5 lines, lines from 10 to 16

head, tail, sed

Counting words, lines

wc

Sorting text

sort

Removing duplicate lines,words

Sed, uniq

Comparing 2 files line/line

diff

Find Replace

sed, perl, awk

Changing case : uppercase letters to lowercase and vice versa

tr

Matching braces

(% in vi)

Converting tabs to spaces and vice versa

expand, unexpand

Updating file timestamp

touch

View folder list

tree

Filed under Programming |

Comments are closed.