-- Search a file by name
sudo find /home/xavier -name my_file -print
locate my_file
-- Search a file by content
grep -rnw /path/to/somewhere -e my_pattern
-- Refresh file index database (used by the locate command)
sudo updatedb
-- Compress a file or folder with tar ('tape archiver')
tar -zcvf my_archive.tar.gz my_folder/
-- Uncompress
tar -zxvf my_archive.tar.gz
-- x : extract
-- c : create archive
-- f : use file passed as an argument
-- v : verbose mode
-- z : Gzip compression
-- View the content of a compressed file
-- Method #1
gzip -dc /var/log/syslog.7.gz
-- Method #2
zcat /var/log/syslog.7.gz
-- LSB : Linux Standard Base (Information about the Linux distrib)
lsb_release --all
-- Description: Ubuntu 20.04.1 LTS
-- Release: 20.04
-- Codename: focal
-- Create a named screen
screen -S my_screen
-- Exit screen
CTL A then CTL D
-- List running screens
screen -ls
-- Go back to screen
screen -r my_screen
-- Exit and close current screen
exit;