I hope You understand these Linux commands

R.Devansh Shukla
4 min readApr 5, 2023

--

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-repositorycommand, which simplifies the process of adding the repository's GPG key and updating the package list.

Here are the steps to add a PPA:👾

  1. Open a terminal window on your system.👨‍💻
  2. Execute the following command to install the software-properties-common package, which includes the add-apt-repository command:
sudo apt-get update
sudo apt-get install software-properties-common
  1. 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.

  1. After executing the command, the system will prompt you to confirm the addition of the PPA. Type ‘Enter’ to confirm the addition.
  2. 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:🤯

  1. ls: List directory contents
  2. cd: Change directory
  3. mkdir: Make directory
  4. rm: Remove files and directories
  5. cp: Copy files and directories
  6. mv: Move or rename files and directories
  7. cat: Concatenate and display files
  8. grep: Search for a pattern in a file
  9. chmod: Change file permissions
  10. chown: Change file ownership
  11. sudo: Execute a command as the superuser
  12. ssh: Connect to a remote server using Secure Shell protocol
  13. tar: Archive files and directories
  14. apt-get: Install, remove, or update software packages
  15. df: Display disk usage information
  16. ps: Display currently running processes
  17. top: Display system resource usage in real-time
  18. ping: Test network connectivity to a server
  19. netstat: Display network connections and routing tables
  20. history: 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!!! 😁👋🏾😁

--

--

R.Devansh Shukla

I am an IoT / Embedded Full Stack Developer with over 2 years of experience researching and developing IoT, Embedded, and Software solutions from the ground up.