
Vi is a text editor originally created for Unix-based systems and is widely used in Linux environments. It is a powerful, lightweight, and versatile editor that operates directly within a terminal window. Vi is known for its efficiency and keyboard-based editing commands, making it popular among system administrators, …
Read More
User management useradd [USERNAME] - Add new user useradd -G [GROUPNAME][username]- Add new user in group passwd [USERNAME] - User account is locked until you set a password with the passwd command usermod -a -G [GROUPNAME][username] - Add user in group userdel [USERNAME] - Remove the existing user cat /etc/passwd | …
Read More
basic 'find file' commands 1find / -name foo.txt -type f -print # full command 2find / -name foo.txt -type f # -print isn't necessary 3find / -name foo.txt # don't have to specify "type==file" 4find . -name foo.txt # search under the current dir 5find . -name "foo.*" # wildcard 6find . -name …
Read More
Options Description -c This prints only a count of the lines that match a pattern -h Display the matched lines, but do not display the filenames. -i Ignores, case for matching -l Displays list of a filenames only. -n Display the matched lines and their line numbers. -v This prints out all the lines that do not matches …
Read More
AWK is a line-oriented language basically used to manipulating data and generate reports. awk script no required any compiler to compile. In awk we use variables, numeric functions, string function and logical operators. Awk is abbreviated from the names of the developers – Aho, Weinberger, and Kernighan. An awk …
Read More