Escolar Documentos
Profissional Documentos
Cultura Documentos
Mv <file name>
tmp/
// Renaming
// Moving
Head command:
By default it prints first 10 files from a file
Display first 3 lines
Head n3 filename.txt
Skip last 3 lines and print the remaining
Head n-3 filename.txt
Print first n bytes
Head c5 filename.txt
Skipping last n bytes
Head c-5 filename.txt
Print lines between 3 to 6 lines
Uniq Command:
Is used to suppress the duplicate lines from a file. It discards all the successive
identical lines except one from the input and writes the output.
Uniq [options] filename
c: count the occurrence of each line
d: prints only duplicate lines
D: prints all duplicate lines
f: Avoid comparing first N fields
i: Ignore case when comparing
s: avoid comparing first n characters
u: prints only unique lines
w: compare no more than N characters in lines.
> cat example.txt
Unix operating system
unix operating system
unix dedicated server