Here are some Linux terminal commands that I find useful for me.
Working with text files- create file
touch file.txt
- create and open a file with nano
nano file.txt
- Read the content of a file (3 different approaches)
cat file.txt
more largefile.txt
less largefile.txt
- read the first 5 lines of a file
head -n 5 file.txt
- read the last 5 lines of a file
tail -n 5 file.txt