Whats all the hype about Linux?
Linux has been around since the mid-1990s and has since reached a user-base that spans the globe.
Linux is actually everywhere: It's in your phones, your thermostats, in your cars, refrigerators, Roku devices and televisions. It also runs most of the Internet, all of the world’s top 500 supercomputers and the world’s stock exchanges.
But besides being the platform of choice to run desktops, servers, and embedded systems across the globe, Linux is one of the most reliable, secure and worry-free operating systems available.
In fact, one of the most popular platforms on the planet, Android, is powered by the Linux operating system. An operating system is software that manages all of the hardware resources associated with your desktop or laptop. To put it simply, the operating system manages the communication between your software and your hardware.
Various basic Linux commands:
cd:
cd command can be used by just typing the name of the folder you want to go in from your current directory. If you want to go up just do it by giving double dots (..) as the parameter.
ls:
ls is simply list command.It displays the content of any folder the terminal is currently run on.So basically it shows what files and folders are present on the current working directory.
Various parameters can be specified in order to summarize the listed result with this command but for this demonstration we are including only -a & -l.To know more details about the ls command you can check it's manual page by typing man ls in terminal.
ls -a: It displays all the hidden files and folders.
ls -l: It displays the long format listing of files and folders.
su / sudo:
This command basically provides root permission to the current user and it can be used in unison with other commands to perform any actions that require root access to function. It stands for super user/ super user do.
cp:
It basically stands for copy-paste .Using cp will help you to copy-and-paste the file from the terminal. First, you determine the file you want to copy and type the destination location to paste the file.
cp -r : It stands for recursive copy
cp -f : It stands for forced copy
mv:
This command allows us to move or cut a file or folder from source to the destination.
rm:
This command can be used to remove your file or even your directory.
rm -f : It stand's for forced remove
rm -r : It stand's for recursive remove
apt-get:
In Debian based Linux distributions, to install, remove and upgrade any package we’ve Advanced Packaging Tool (APT) package manager. The apt-get command will help you install the software you need to run in your Linux. It is a powerful command-line tool which can perform installation, upgrade, and even removing your software.
apt-get update
apt-get install
apt-get remove
apt-get autoremove [ It will remove all the dependency files which are no longer needed ]
mkdir:
This command can be used to create or make a directory.This is not applicable for a file but for a folder or directory.
df:
This command can be used to find the free disk space on the drives or the file systems
df-h :human readable that displays the size in kb or mb.
du:
This command can be used to find the usage space on the drives or the filesystems.
Comments
Post a Comment