grep – Page 2 – POFTUT

How To Exclude with Grep In Linux?

grep is very useful tool used by a lot of tech guys. grep provides different functions to match given text. We have all ready mentioned these useful options of grep. In this tutorial we will look different ways to exclude in grep. Linux egrep Command Tutorial with Examples Exclude with -v  Option The basic way … Read more

How To Use Regular Expression – Regex In Bash Linux?

Linux bash provides a lot of commands and features for Regular Expressions or regex. grep , expr , sed and awk  are some of them. Bash also have =~ operator which is named as RE-match  operator. In this tutorial we will look =~  operator and use cases. More information about regex command cna be found in the following tutorials. … Read more

How To Use Grep Command Recursively Through Sub-Directories In Linux?

grep is very useful command to search files and directories. What makes grep powerful is that it can search file contents. We can search file content according to extension. Recursive behavior makes it more powerful by looking sub directories and files. Introduction to Linux Grep Command With Examples Recursive -r Option We will start with … Read more

How To Find Files, Folders and Directories In Linux From Command Line?

How To Find Files, Folders and Directories In Linux From Command Line?

Linux provides different ways to find and locate files and folders. We can use GUI tools like GNOME and KDE file managers or other 3’rd party applications designed for finding files. In this tutorial, we will look at how to find files, folders, and directories from the command line. Tools To Find Files and Folder … Read more

Linux Grep OR, AND, NOT Operator and Logic Examples

logrep is very useful tool for text search and pattern matching. We have all ready provided tutorial and examples about grep and egrep . In this tutorial we will look grep command or , and , not logic operations in detail. Example Text We will use following text during tutorial for grep operations. This is … Read more

Linux egrep Command Tutorial with Examples

Linux provides grep for text filtering. But in some situations we may need more extended tool to match given pattern in given text files. This tool is called Extended Global Regular Expression Print or simply egrep . egrep provides extended features over regular grep tool. Syntax Syntax of  egrep command is like below. egrep FLAG … Read more

How To Check and List Listening Ports with Netstat In Linux

netstat is very useful tool which provides a lot of information about the network of operating system. netstat command can list ip addreass, route, port, connections etc. More detailed information about the netstat command can be found in the following tutorial. Linux Netstat Command With Examples List All Listening Ports We can use netstat -l options in order to list … Read more

Nmap Output

[rps-include post=6632] Output is important part of a scan because all gathered information will be shown. According to output next steps will be decided. In this chapter we will look nmap output features. Normal Output To A File Normal output is the default output which is normally written to the console. This output can be … Read more

Useful Linux Commands

Useful Linux Commands

Linux is a command-based operating system. Most of the things are done in the command-line environment bash. In this tutorial, we will look at popular and useful commands used by Linux system administrators and users. You can access detailed tutorials simply clicking links below. tr tr command is used to translate or delete characters in the … Read more

Ultimate Sed Tutorial With Examples

Ultimate Sed Tutorial With Examples

Sed is a stream editor. Sed is used to transform text according to different needs. Sed has a scripting language set too. Sed scripts can be run against files as we see our examples below.  Now we should start an example because this tutorial is one of the longest tutorials on this site. sed Command … Read more