Basic Linux commands- part1
Here are the list of basic Linux commands which every linux user should know
ls //Listing folder contents
ls -a // Listing folder contents along with hidden files
pwd //Path working directory -- provides you current working directory
cd //Navigate through directories
mkdir //Create directories
mkdir A B C D //Create multiple directories
mkdir -p A/B/C // Making nested dir
mv //Move or rename files in
cp //Copying files
rm //Delete files
rm -r // Deleting folders
rm -rf //Deleting folders along with files
touch //Create blank/empty files
cat //Display file contents on the terminal
clear //Clear the terminal display
echo //Print any text that follows the command
uname //get basic information about the OS
whoami //Get the active username
tar //Command to extract and compress files
grep //Search for a string within an output
head //Return the specified number of lines from the top
tail //Return the specified number of lines from the bottom
diff // Find the difference between two files
sort //Sort the content of a file while outputting
export //Export environment variables
zip //Compress files using zip
unzip //Uncompress files using zip
ssh //Secure Shell
service //start and stop services
ps //Display active processes
kill and killall //Kill active processes by process ID or name
df //Display disk filesystem information
mount //Mount file systems
chmod //Change file permissions
chown //Granting ownership of files or folders
ifconfig //Display network interfaces and IP addresses
wget //Direct download files from the internet
iptables //Base firewall for all other firewall utilities to interface with
apt, pacman, yum, rpm //Package managers depending on the distro
sudo //Command to escalate privileges in Linux
su //switch user
alias //Create custom shortcuts for your regularly used commands
whoami // to know current user
whereis //Locate the binary, source, and manual pages for a command
whatis //Find what a command is used for
useradd and usermod //Add new user or change existing users data
passwd //Create or update passwords for existing users