Over the years I have faced several linux challenges that I have solved by googling or thanks to beautiful people who have shared their knowledge.
This is a brief compilation of useful tricks grouped in different categories: Files management, searching, bash scripting, networking, compressed files management, packet management, server information and miscellaneous.

๐Ÿ“๐Ÿ“Files management

Delete
Replace
Add
Filter
Misc

๐ŸงฎLet's count

๐Ÿ”Searching

๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘ฉโ€๐Ÿ’ปBash scripting basics

For syntax
#!/bin/bash 
for i in `seq 1 90` do
echo $i
done
Read file line per line
#!/bin/bash
while IFS='' read -r line || [[ -n "$line" ]]; do
echo "Text read from file: $line"
done < "$1"

Execution: ./read_file_line_per_line.sh file_to_read.txt
Read file word per word
#!/bin/bash
while IFS='' read -r line || [[ -n "$line" ]]; do
for word in $line     
do
echo $word
done
done < "$1"
Execution: ./read_file_line_per_line.sh file_to_read.txt
Check if a file exists
#!/bin/bash
if [ -f $path/to/file.txt ]; then
echo "exist"
else
echo "no exist"

fi
Check ip reachability
#!/bin/bash 
ping -w1 -c3
$IP
 >/dev/null 2>&1 && echo "ON" || echo "OFF"

๐ŸŒNetworking

Traffic
Port scanning ๐Ÿ‘€
Listening ๐Ÿ‘‚๐Ÿ‘‚

๐Ÿ—ƒ๏ธCompressed files management

.tar.gz files
Compress
:
tar -czvf compressed.tar.gz /direcory/to/compress/

Decompress:
tar -xzvf compressed.tar.gz
.tar files
Compress:
tar -cvf compressed.tar /direcory/to/compress/

Decompress:
tar -xvf compressed.tar
.gz files
Compress:
gzip file.txt

Decompress:
 gzip -d file.txt.gz
.zip files
Compress:
zip compressed.zip /direcory/to/compress/

Decompress:
unzip compressed.zip
Bonus ๐ŸŽ‰
Read compressed file without decompress:
zcat compressed.gz

Filter compressed file without decompress:
zgrep -n 
string 
compressed.gz

Split compressed file in parts of 10m size:
split -b 10m file.tar.gz "file.tar.gz.part"

๐Ÿ“ฆPacket management (YUM and DNF)

โ„น๏ธServer info

๐Ÿ•Misc
Hope this was useful for you. If you want more don't hesitate visit my github