Posts

Showing posts from March, 2023

Network Commands

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Sure! Here are some commonly used Linux networking commands: ifconfig : This command displays the network interfaces and their configurations. ip : This command displays and modifies network interfaces, routing tables, and other network settings. ping : This command tests the connectivity to a remote host by sending ICMP echo requests and receiving replies. traceroute : This command traces the route that packets take from the local host to a remote host, displaying the IP addresses of each hop along the way. netstat : This command displays network connections, routing tables, and network interface statistics. ss : This command provides similar functionality to netstat but with faster performance. route : This command displays and modifies the routing table. dig : This command performs DNS queries and displays the results. ...

How to prepare Linux

 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++   Preparing for a Linux administrator exam involves covering a wide range of topics related to Linux system administration. Here are some of the key topics to prepare for: Linux Fundamentals: This includes knowledge of Linux history, basic concepts, and architecture, as well as the use of the command line interface. System Administration: This includes knowledge of managing users, groups, and file permissions, as well as configuring network services and managing storage. Process Management: This includes knowledge of monitoring and managing processes, including starting and stopping services and handling system resources. Security: This includes knowledge of system security, such as configuring firewalls, monitoring logs, and implementing security policies. Networking: This includes knowledge of networking protocols, ser...

SHELL COMMANDS

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++   Certainly! Here's an overview of some basic Linux commands: ls : This command lists the files and directories in the current directory. cd : This command changes the current directory to the specified directory. pwd : This command prints the current working directory. mkdir : This command creates a new directory. rmdir : This command removes an empty directory. rm : This command removes a file or directory. cp : This command copies a file or directory. mv : This command moves or renames a file or directory. cat : This command prints the contents of a file. less : This command displays the contents of a file, one page at a time. grep : This command searches for a pattern in a file. echo : This command prints a message to the screen. chmod : This command changes the permissions of a file or directory. chown : This comma...

AWK : Commands

Image
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  AWK AWK stands for "Aho, Weinberger, and Kernighan". It is named after its creators Alfred Aho, Peter Weinberger, and Brian Kernighan, who developed the language while working at Bell Labs in the 1970s. replace a word with another word awk '{gsub(/sreejith/, "Balakrishnan"); print}' filename  // This will replace all the sreejith to Balakrishnan Print a particular word if that appears in the file awk '{for(i=1;i<=NF;i++) if ($i == "word") print $0}' filename Print only once if a word was found in the file awk '{for (i=1; i<=NF; i++) if ($i == "sreejith" && !seen[$i]++) print $i}' test-file.txt   Print the last word that has "america" as its last word awk '$NF ~ /america$/' test-file.txt or awk '$NF ~ /america$/{print $0}' test-...