grep --help

grep - help

grep --version

grep - version

cat apple.txt

cat filename

 

grep -c "apple" apple.txt

grep -c text filename

grep -i "apPLe" apple.txt

grep -i pattern filename

grep -l "apple" *

grep -l pattern

grep -l "apple" abc.txt apple.txt

grep -l pattern file1 file2

grep -o "Apple" apple.txt

grep -o pattern filename

grep -n "Apple" apple.txt

grep -n pattern filename

grep -v "Apple" apple.txt

grep -v pattern filename

grep "^Newton" apple.txt

grep command in Linux

grep "bread.$" apple.txt

grep command in linux with examples

 

A
adduser | addgroup | alias | anacron | apt | aptitude | arp | at | atq | atrm | awk
B
basename | banner | batch | bc | bg | bzip
C
cat | cal | cd | chgrp | chown | cksum | chmod | clear | cmp | comm | cp
D
date | dd | df | diff | dir | dmidecode | du
E
echo | eject | env | exit | expr
F
factor | find | free
G
grep | groups | gunzip | gzip
H
head | history | hostname | hostnamectl | htop | hwclock | hwinfo
I
id | ifconfig | ionice | iostat | ip | iptables | iw | iwlist
J
K
kill | kmod
L
last | less | ln | locate | login | lp | ls | lshw | lscpu | lsof | lsusb
M
man | mdsum | mkdir | more| mv
N
nano | nc | neofetch | netcat | netstat | nice | nmap | nproc
O
openssl
P
passwd | pidof | ping | pr | ps | pwd | pstree
Q
R
rdiff-backup | reboot | rename | rm | rmdir | rnmod
S
scp | shred | shutdown | sleep | sort | split | ssh | stat | su | sudo | sum
T
tac | tail | talk | tar | tee | time | tree | top | touch | tr
U
unalias | uname | uniq | unzip | uptime | users
V
vim | vi
W
w | wall | watch | wc | wget | whatis | whereis | which | who | whoami
X
xargs
Y
yes | youtube-dl
Z
zcmp | zdiff | zip | zz

Sharing is Caring
Scroll to Top