Linux

bzip2 command in Linux/Unix, Uses of bzip2 command with examples

bzip2 command in Linux/Unix The bzip2 command in Linux is used for compressing and decompressing files. It is like gzip command but takes a little more time to compress but compresses better. It uses the Burrows-Wheeler block-sorting text compression algorithm and Huffman coding. bzip2 command creates a compressed file with the extension “.bz2”. Syntax for …

bzip2 command in Linux/Unix, Uses of bzip2 command with examples Read More »

sort command in Linux

sort command in Linux/Unix, Uses of sort command with examples

sort –help sort –version sort abc.txt sort UpperLower.txt sort abc.txt > output.txt sort -o newoutput.txt abc.txt sort -r abc.txt sort 123.txt sort 123abc.txt sort -n 123abc.txt sort -nr 123.txt sort -g 123abc.txt   sort -k1 pink.txt sort -k2 pink.txt sort -M calender.txt sort -c sortc.txt sort -u sortu.txt

cat command in Linux

cat command in Linux, usage of cat command with examples

  cat –help Display the contents of a single file cat programbr.txt cat -n programbr.txt cat programbr.txt programbr2.txt cat -n programbr.txt programbr2.txt cat > newfile.txt cat newfile.txt > newfilecopy.txt cat -s programbr1.txt cat programbr.txt >> programbr2.txt cat -E programbr2.txt tac programbr.txt cat /proc/cpuinfo

Scroll to Top