Make a test directory.
> mv data data1
The move command copies over the previous file. Data1 will be the new file.
> umount -l /media/usb
This command is used to un-mount busy usb drives.
> cat *.nbe grep results awk -F"" '{print $3}' sort uniq
This unix statement concatenates all of the .nbe files, searches for the word 'results' and print the third column of uniq data in sorted order
The cat command is a standard Unix program used to concatenate and display files. The name is from catenate, a synonym of concatenate.
grep is a command line text search utility originally written for Unix. The program's name derives from the UNIX ed comman, g/re/p which performs a similar operation.
Although grep is not strictly an acronym, the letters are taken from global / regular expression / print, a series of instructions for the ed text editor. The grep command searches files or standard input globally for lines matching a given regular expression, and prints them to the program's standard output.
> cat *.txt grep Interesting awk '{print $4}' sort uniqThis statement is utilized with a nmap statement. Used to search and publish the IP address from the scans tagged as 'Interesting'.
> tar -zxvf test123.tar.gz
z -- unzip
x -- extract the file
v -- verbose
f -- forcefully done
How to unzip a tar file?