Linux is a free and open-source software that operates on its own operating system. The term 'Linux' stands for GNU + Linux. Initially developed by Linus Torvalds*, it was created alongside the source code of Unix. While Linux is extensively utilized for various purposes, its applications are well-known to many.*
COMMAND | USAGE | DESCRIPTION |
|---|---|---|
ls | - | Displays information about files in the current directory. |
pwd | - | Displays the current working directory. |
mkdir | [folder] | Creates a directory. |
cd | [folder] | To navigate between different folders. |
rmdir | [folder] | Removes empty directories from the directory lists. |
cp | [copyFile] [pasteFile] | Copy files from one directory to another. |
mv | [file] [renamedFile] | Rename and Replace the files |
rm | [file] | Delete files |
name | - | Command to get basic info about the OS |
locate | [file] [file]*[file] | Find a file in the DB |
touch | [file] | Create empty files |
ln | -s Demo Linked | Create shortcuts to other files |
cat | [file] | Displays the file content in terminal |
clear | - | Clear teriminal |
ps | - | Displays the processes |
man | -f [cmdName] | Access manual for all Linux cmds |
grep | cat Files.txt | grep “new” <cmd> | grep [stringTofind] | Search for a specific string in an output |
echo | “[stringText]” | Print string or text in the terminal |
wget | [link] | Download files from the internet |
whom | - | Displays the current users name |
sort | [file] | Sort the file content |
cal | [month] [year] | View Calendar |
whereis | [cmd] | View the exact location of any command typed after this command |
df | -h | Check the details of the file system |
wc | touch file.txt echo -e “This file has only three words” > file.txt wc -w file.txt | Check the lines, word count, and characters in a file using different options wc -w shows the number of words wc -l shows the number of lines wc -m shows the number of characters present in a file |