UK
Joined February 2014
Mastering the Linux ifconfig Command dlvr.it/SzHy0k
6
258
Docker Exec Command With Practical Examples dlvr.it/SwvJmZ
1
215
Debugging with Git Bisect dlvr.it/ShwkRX
3
15
1,469
8/8 grep is a powerful command that can be used in many different ways. With these examples, you can start using grep to search through text files and find the information you need. You can always check the man grep for more detail and buildvirtual.net
1
1
4
984
7/8 The grep command can also be used in conjunction with other Linux commands. For example, you can use the grep command with the pipe operator (|) to search for a pattern in the output of another command.
1
2
853
6/8 To show the line number and file name where the pattern is found, you can use the -n and -H flags. To search for the word "example" in a file called "text.txt" and show the line number and file name, you would use: grep -nH "example" text.txt
1
294
5/8 To search case-insensitive you can use the -i flag. For example, to search for all occurrences of the word "example", regardless of case, you would use the following command: grep -i "example" text.txt
1
38
4/8 To search for a pattern in multiple files, you can use the -r flag to search recursively through a directory. For example, to search for the word "example" in all files within the "docs" directory, you would use the following: grep -r "example" docs/
1
1
1
60
3/8 You can also use grep to search for patterns using regular expressions. For example, to search for all lines in a file that start with the letter "a", you would use the following command: grep "^a" text.txt
1
59
2/8 One of the most basic uses of grep is to search for a specific word or phrase in a file. For example, to search for the word "example" in a file called "text.txt", you would use the following command: grep "example" text.txt
1
66
1/8 The grep command in Linux is a powerful tool that allows you to search for patterns within text files. It stands for "Global Regular Expression Print".
1
1
4
1,455
8/8 7. ping: a command-line tool that allows you to test network connectivity. Use it to check if a host is reachable and to measure network latency.
1
3
549
7/8 6. dig: a command-line tool that allows you to perform DNS queries. Use it to troubleshoot DNS issues or to gather information about DNS records.
1
3
506
6/8 5. iptables: a command-line tool that allows you to configure the Linux kernel's built-in firewall. Use it to set up rules for filtering and manipulating network traffic.
1
190
5/8 4. ifconfig: a command-line tool that allows you to view and configure network interfaces. Use it to view IP addresses, netmasks, and other interface-related information.
1
53
4/8 3. tcpdump: a command-line tool that allows you to capture and analyze network traffic. Use it to troubleshoot network issues or to monitor network activity.
1
77
3/8 2. traceroute: a command-line tool that allows you to trace the route packets take from your device to a destination. Use it to identify network delays or bottlenecks.
1
1
92
2/8 1. netstat: a command-line tool that allows you to view active network connections and their associated statistics. Use it to view information about TCP, UDP, and UNIX domain sockets.
1
1
83
1/8 If you're a Linux administrator, you know the importance of having a solid set of networking tools at your disposal. Here are some commonly used Linux networking tools that can help you troubleshoot and optimize your network:
1
4
6
973