main_devops-engineer-linux-commands-cheat-sheet (1)
main_devops-engineer-linux-commands-cheat-sheet (1)
Sheet
Find the file (search for a file): Search the text string in a Print the groups to Delete existing user with all files
$ find <dir path> -name directory and print filename which the current user associated with user:
<filename> -print containing that string: is associated: $ sudo userdel -r clouduser1
e.g. to find app.log in /var $ file /var -type f - $ groups $ id clouduser1
directory print | xargs grep id: ‘clouduser1’: no such user
$ find /var -name app.log –print` <search text>
By rakesh zingade
Not published yet. Sponsored by Readability-
cheatography.com/rake Last updated 2nd December, Score.com Measure your website
sh- zingade/ 2018. Page 1 of 4. readability! https://readability-
score.com
Linux Commands to know by DevOps Engineer
Cheat Sheet
file.txt (check lsof, list open files by processes netcat, debug and
more details in a) list open files by specific investigate network
a separate user a) start a dummy
block) lsof -u <username> listening server on