DEV Community

Discussion on: Basic UNIX commands

Collapse
 
neradev profile image
Moritz Schramm

I really do love tar -xfv test.tar and ls -lisa

Collapse
 
carlschelin profile image
Carl Schelin

I typically use ls -lart :) (the a isn't necessary but it is appropriate ;) )

Collapse
 
moopet profile image
Ben Sinclair

I understand why you do that and it spoils it a little to add a letter - but my only common use case apart from a normal ls is ls -larth.

Collapse
 
19h47 profile image
Jérémy Levron • Edited

If I understand correctly, you can chain options? -xfv means -x, then -f, then -v, is it correct?

Collapse
 
vsanjo profile image
David Woodward

This is correct (of most commands)! Some more complex ones can't be chained.

For example, you can't chain --this-is-an-arg and --this-too-is-an-arg but individual letters are usually fine.

Collapse
 
michaeltd profile image
michaeltd

If you find your self puzzled by the various archive extensions then this is for you. Linux CLI unpack unification script.

pastebin.com/wNCP166T

(Excuse the shameless plug btw)