LINUX Basic 1
SHOAIB SHAIK
?? Published author, AI and Deep learning; fascinated with technology with a deep passion to use technology to make the world a better place. Time, space, Quantum computing are traits I am happy to be involved.
The text provides an overview of various commands and utilities in Linux, including regular expressions, #grep, #find, #wc, #cut, #sort, #cat, #xargs, archiving with tar, package installation with YUM and dnf, and monitoring processes with ps and free. It explains how to use these commands for searching, counting, filtering, sorting, displaying, and archiving data in Linux systems.
correct spelling for below regular expression this regular expression is highley famous among the searching the strings as we can see that in below how we need to look for it we start with the brakets [] and the data in it like [asdasd] this will search the data any words matches in that list like p[ai]n this will match the data like pin and pan not pain as it has only one word p[^ai]n this will match all the coloumns in the data
GREP Command we can use the grep command to search for a file content of the file the line contains the string we can also use the grep to search for search a specific file and string specified
grep --count grep --file grep -- RGREP FOR RECURSIVE FILE grep -e is for regular expression
USING FIND
the FIND utility implement a brute- force approcahe to find files this progrtame finds files by searching through the specified directorye tree, checking filenames, file creations dates.
find --name find -perm mode -size n group name gid GID
Using WC this used for checking the word count of file Using cut -d -c -f
Using the Sort Command to sort the data in a file
领英推荐
Using Cat command cat is used to show the data in the file cat can be used to concat the file output as a single one
Xargs command helps to send one ouput to the input of the other files
2> 2>> &> ,<< <>
Less is to see the file we can use pipe or pipeline |
generating command lines Backtick “ ` ” : this will help to make a seperate command whose result are to be procressed.
Archiving the data
using tar tar is a tape archiver. Tar is used for backup data tp your hard disk or other media -c create an archieve -a append tar to an archive file -r append non-tar files to an archive GZIP bZip XZ
linux package we use YUM, dnf for pacakage installation debangen is apt-get ] like dnf install yumex
ps command to look into the procress which are running free command to check over all