pwd
:-To know which directory you are in, Use This CMD
ls
:-To know what files are in the directory you are in. You can see hidden files with ls -a
cd
:-Use if you want to go to a directory. If you are in a folder and you want to go to your home folder just type cd
mkdir
:-To create a new directory.
rmdir
:-To remove a directory.
rm
:-To remove a file.
touch
:-To create a file.
man
:-To know more about a command.
--help
:-Same function as 8.
cp
:-To copy files.
mv
:-To move files and rename files.
locate
:-To locate a file.
echo
:-Used to move data, especially text into a file.
cat
:-To display the contents of a file.
nano
:-to create & edit files.
vi
:-Same function as 15.
sudo
:-To use any command with superuser privilege.
df
:-To see the available disk space in each of the partitions in your system.
du
:-To know the disk usage of a file in your system.
tar
:-To work with tarballs (or files compressed in a tarball archive)
zip
:-To compress files into a zip archive.
unzip
:-To extract files from a zip archive.
uname
:-To show the information about the system your Linux distro is running.
apt-get
:-To work with packages in the Linux command line.
chmod
:-To make a file executable and to change the permissions granted to it in Linux.
hostname
:-To know your name in your host or network.
ping
:-To check your connection to a server.
netcat/nc
:-To connect to a server.
nmap
:-To scan an IP or Port.
free
:-To display amount of free and used RAM in the system, also prints the swap space stats.
These commands are mostly used commands for begineers.
May,this command is also useful for you, if you are begineer.