- Linux are used mostly in many devices, web servers.
- Linux is based on Unix
- It’s an umbrella term
- Ubuntu is most common and lightweight
- Terminal is used to interact with Linux if no GUI is installed
- echo is used to output text
- whomai prints current username
- ls list files in a directory
- cd change directory
- cat concatenate file contents to output
- pwd print working directory
- find command can be used to find files efficiently
Finding a file with find
find -name filename.txt
To find all files with txt extension use :
find -name *.txt
- The grep command allows us to search the contents of files for specific values that we are looking for
- wc can be used to find number of lines , words or characters