I hope You understand these Linux commands
Hey folks!! The skeleton 🦴💀 is back with one more helpful blog for the Linux enthusiast. I have been a Linux user since 2015 when I received my very first Phone😁😂. Just kidding!! I mean, not directly, but we have all been using Linux ever since we started using an Android phone👨💻. If you didn't get the joke message me bro….😂💀
What is sudo apt? I mean you all keep using that🫤🙄
APT (Advanced Package Tool) is a package manager used on Debian-based Linux distributions, such as Ubuntu, Linux Mint, and Debian. APT makes it easier to manage software packages on the system, including their dependencies and updates, and to install, remove, and manage them.
Imagine that you are the owner of a pizza🍕 restaurant, and you have a lot of different ingredients that you use to make your pizzas. You have cheese🧀, pepperoni, mushrooms🍄, onions, and many more toppings.
Now, imagine that APT is your assistant chef 👨🏻🍳. Every day, APT checks the inventory of your ingredients and makes a list of the ones that are running low. Then, APT goes to the grocery store and buys more of those ingredients, as well as any new ingredients that you might need for a new pizza recipe.
sudo apt update // This will fetch the updated packages from APT
sudo apt-get upgrade //This shall update the package in our local machine
What is PPA?🫣
Personal Package Archive, or PPA, is an unofficial package manager😩 where developers can add programmes that have not been approved by the official Linux developers but that you can still install and use.
To add a PPA (Personal Package Archive) to a Debian-based Linux system, you can use the add-apt-repository
command, which simplifies the process of adding the repository's GPG key and updating the package list.
Here are the steps to add a PPA:👾
- Open a terminal window on your system.👨💻
- Execute the following command to install the
software-properties-common
package, which includes theadd-apt-repository
command:
sudo apt-get update
sudo apt-get install software-properties-common
- Once the package is installed, use the
add-apt-repository
command to add the PPA. For example, if you want to add the PPA for the OpenJDK builds team, you can use the following command:😎
sudo add-apt-repository ppa:openjdk-r/ppa
This command adds the openjdk-r/ppa
PPA to your system.
- After executing the command, the system will prompt you to confirm the addition of the PPA. Type ‘Enter’ to confirm the addition.
- Once the PPA is added, update the package list using the following command:😎
sudo apt-get update
That’s it! The PPA should now be added to your system, and you can use apt-get
or aptitude
to install packages from the new repository.
CURL ?????🤔
curl
is a command-line tool for transferring data from and to servers. It supports a wide range of protocols, including HTTP, FTP, SMTP, and more. curl
is commonly used for downloading files, sending requests to web APIs, and automating system tasks
curl https://www.google.com //curl (url) this will return html file of the result
Must Knows: Few cmd that would make you look cool😎
Here are a few must-know Linux commands:🤯
ls
: List directory contentscd
: Change directorymkdir
: Make directoryrm
: Remove files and directoriescp
: Copy files and directoriesmv
: Move or rename files and directoriescat
: Concatenate and display filesgrep
: Search for a pattern in a filechmod
: Change file permissionschown
: Change file ownershipsudo
: Execute a command as the superuserssh
: Connect to a remote server using Secure Shell protocoltar
: Archive files and directoriesapt-get
: Install, remove, or update software packagesdf
: Display disk usage informationps
: Display currently running processestop
: Display system resource usage in real-timeping
: Test network connectivity to a servernetstat
: Display network connections and routing tableshistory
: Display command history
These are just a few of the most commonly used Linux commands. There are many more commands available, depending on your needs and requirements.
Try these commands and let me know……🤓🤓
Ping me on LinkedIn for any further assistance. Seeeeee yaa!!! 😁👋🏾😁