Jump to content

Search the Community

Showing results for tags 'linux'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • General Discussion
    • Artificial Intelligence
    • DevOps Forum News
  • DevOps & SRE
    • DevOps & SRE General Discussion
    • Databases, Data Engineering & Data Science
    • Development & Programming
    • CI/CD, GitOps, Orchestration & Scheduling
    • Docker, Containers, Microservices, Serverless & Virtualization
    • Infrastructure-as-Code
    • Kubernetes
    • Linux
    • Logging, Monitoring & Observability
    • Red Hat OpenShift
    • Security
  • Cloud Providers
    • Amazon Web Services
    • Google Cloud Platform
    • Microsoft Azure

Calendars

  • DevOps Events

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


LinkedIn Profile URL


About Me


Cloud Platforms


Cloud Experience


Development Experience


Current Role


Skills


Certifications


Favourite Tools


Interests

  1. Even on Linux, you can enjoy gaming and interact with fellow gamers via Steam. As a Linux gamer, Steam is a handy game distribution platform that allows you to install different games, including purchased ones. Moreover, with Steam, you can connect with other games and play multiplayer titles.Steam is a cross-platform game distribution platform that offers games the option of purchasing and installing games on any device through a Steam account. This post gives different options for installing Steam on Ubuntu 24.04. Different Methods of Installing Steam on Ubuntu 24.04 No matter the Ubuntu version that you use, there are three easy ways of installing Steam. For our guide, we are working on Ubuntu 24.04, and we’ve detailed the steps to follow for each method. Take a look! Method 1: Install Steam via Ubuntu Repository On your Ubuntu, Steam can be installed through the multiverse repository by following the steps below. Step 1: Add the Multiverse Repository The multiverse repository isn’t added on Ubuntu by default but executing the following command will add it. $ sudo add-apt-multiverse Step 2: Refresh the Package Index After adding the new repository, we must refresh the package index before we can install Steam. $ sudo apt update Step 3: Install Steam Lastly, install Steam from the repository by running the APT command below. $ sudo apt install steam Method 2: Install Steam as a Snap Steam is available as a snap package and you can install it by accessing the Ubuntu 24.04 App Center or by installing via command-line. To install it via GUI, use the below steps. Step 1: Search for Steam on App Center On your Ubuntu, open the App Center and search for “Steam” in the search box. Different results will open and the first one is what we want to install. Step 2: Install Steam On the search results page, click on Steam to open a window showing a summary of its information. Locate the green Install button and click on it. You will get prompted to enter your password before the installation can begin. Once you do so, a window showing the progress bar of the installation process will appear. Once the process completes, you will have Steam installed and ready for use on your Ubuntu 24.04. Alternatively, if you prefer using the command-line option to install Steam from App Center, you can do so using the snap command. Specify the package when running your command as shown below. $ sudo snap install steam On the output, the download and installation progress will be shown and once it completes, Steam will be available from your applications. You can open it and set it up for your gaming. Method 3: Download and Install the Steam Package Steam releases a .deb package for Linux and by downloading it, you can use it to install Steam. Unlike the previous methods, this method requires downloading the Steam package from its website using command line utilities such as wget or curl. Step 1: Install wget To download the Steam .deb package, we will use wget. You can skip this step if you already have it installed. Otherwise, execute the below command. $ sudo apt install wget Step 2: Download the Steam Package With wget installed, run the following command to download the Steam .deb package. $ wget https://steamcdn-a.akamaihd.net/client/installer/steam.deb Step 3: Install Steam To install the .deb package, we will use the dpkg command below. $ sudo dpkg -i steam.deb Once Steam completes installing, verify that you can access it by searching for it on your Ubuntu 24.04. With that, you now have Steam installed on Ubuntu. Conclusion Steam is handy tool for any gamer and its cross-platform nature means you can install it on Ubuntu 24.04. we’ve given three installation methods you can use depending on your preference. Once you’ve installed Steam, configure it and create your account to start utilizing it. Happy gaming! View the full article
  2. The Tuxedo Sirius 16 Gen2 is an AMD Linux gaming laptop that comes with the Kubuntu-based Tuxedo OS, Ubuntu LTS, Kubuntu LTS, or Ubuntu Budgie LTS. View the full article
  3. Remote desktop protocols, or RDPs, are used to access a system from any remote location over the Internet. These remote desktop tools are helpful for different tasks, like system administration, modifying processes, and providing remote support. Like other operating systems, Linux distros also support multiple tools and utilities to set up the connection between two systems. However, having multiple options available can get confusing, depending on how and what to choose. So, in this blog, we have listed the top 7 Linux desktops in 2024 that you can install and use without hassles. In 2024, several Linux remote desktop solutions stand out for their reliability, performance, and features. Let’s explore the top contenders: 1. Remmina Remmina, a remote desktop client, is specifically designed for Linux users and other Unix-like systems and is written in GTK+3. The best thing about it? It’s free and open source, rich with features. That’s not about it; the standout point with Remmina is the ability to support a variety of protocols like VNC, RDP, SSH, and NX, giving users multiple options for securely connecting to remote desktops. Users can easily organize and handle connection profiles grouped and quickly connect by entering server addresses. It ensures optimal viewing with scrollable, scalable remote desktops in the window and fullscreen modes. Whether you are a beginner or an advanced user, its user-friendly interface makes it accessible to everyone. 2. RustDesk The rising star in the realm of Linux remote desktop solutions, it has gained swift popularity over the years due to its power-packed speed and not-so-complex operations. It uses the Rust programming language and ensures smooth cross-platform compatibility, providing seamless support to various operating systems, including Linux. RustDesk features include file transfers, multi-monitor support, a streamlined desktop experience, and clipboard sync without compromise. Its self-hosted servers reduce the reliance on external tools like VPNs. Indeed, RustDesk is a promising open–source alternative to establishing a remote desktop and helps the user with versatile, secured remote access 3. TigerVNC Among the best Linux remote desktop options, TigerVNC stands out for its superb VNC protocol implementation, renowned for its dependability and low latency. It is majorly popular for providing lag-free remote desktop experiences in resource-constrained contexts. Because of its platform independence, users may easily access their Linux desktops from a variety of devices and operating systems. TigerVNC is also excellent at supporting 3D and video apps if you are into editing. To improve security during remote desktop connections, TigerVNC now provides extensions for TLS encryption and sophisticated authentication techniques. Thus, TigerVNC offers users who want dependable and effective remote access to their Linux systems a strong and adaptable option. 4. AnyDesk AnyDesk is one of the most prominently used remote desktops around the world, extending its support to all the major operating systems, including Linux. Its interface, high frame rates, and powerful encryption make AnyDesk an ideal choice for professionals and personal preferences. The best and most looked-after factor about AnyDesk is its minimal setup without compromising safety and performance. Linux boasts features such as customizable shortcuts and keyboard layouts, making it easier for users to tailor their experience to their requirements. The file transfer option allows users to exchange files between local and remote systems. AnyDesk for Linux combines ease of use, high performance, and advanced security. 5. XPRA If you want to run X programs on a remote host display, XPRA is your buddy. Unlike any other regular X forwarding, it allows you to disconnect and reconnect without any interference in your program. The best part about XPRA is that its application will run like normal Windows on your desktop and won’t be stuck in a separate box. XPRA’s unique feature is its ability to disconnect and reconnect remote sessions, making it ideal for Linux remote desktop configurations. It is also adaptable and adequate for a range of needs because it supports several platforms and protocols. In general, XPRA provides a smooth and flexible way to access remote desktops on Linux computers. 6. Teamviewer Teamviewer has emerged as one of the finest household names providing remote connectivity. It is perfect for accessing and controlling other devices, whether to provide technical support or otherwise. Whether you want to use it for personal work, business, or an organization of any size, Teamviewer has it all. Along with easy file sharing between devices, it also allows hosting video conferences with 300 people, perfect for remote work. Teamviewer is accessible to all major platforms, including Linux, making it easy to connect from other devices. The security part is taken very seriously by Teamviewer, providing features like encryption and access controls to keep users’ data and devices safe. 7. NoMachine NoMachine is a nifty tool for Linux users, allowing them to control computers remotely. It provides a seamless experience across all Linux distributions. NoMachine is simple, secure, and reliable. Access your Linux desktop from other Linux devices anywhere, anytime. Security is a top priority at NoMachine; it encrypts connections and keeps all your data safe. NoMachine allows two-factor authentication for that extra layer of protection. Not just work, it can also be used to access your home computer while you’re away, stream media, or even play games remotely. Summing up, NoMachine is perfect for accessing your computer at home, in the office, or on the go. Conclusion Linux has a variety of remote desktops, and we have included the 7 best available in 2024. These remote desktop utilities help boost productivity by allowing you to access the system anywhere. You can select any remote desktop tools that align with their workflow. These Linux remote desktop tools can help you make the most of your work and daily tasks, regardless of whether you’re a beginner or an expert. View the full article
  4. As a developer, version control systems are essential to your daily work, especially in enhancing collaboration with other developers. If you use Git as your VCS, understanding how to install it on Ubuntu 24.04 is handy. With Git, you can comfortably track changes in your repository, revert changes, and more. Moreover, Git makes it easy to maintain your code in Git repositories. Before you can use Git on Ubuntu 24.04, you must know how to install it. Luckily, there are two installation options, and both are detailed in this guide. Two Methods of Installing Git on Ubuntu 24.04 Installing Git only requires access to a non-root user account and an internet connection. The method to use will depend on your preference. If you want a quick and easy way, installing Git from the Ubuntu repository is recommended. However, this method doesn’t install the latest Git version. If you want the latest version, you must install Git from its source. This approach involves more steps, but it gets the job done once you know which commands to run. Method 1: Install Git on Ubuntu 24.04 from Ubuntu Repository Git is available in the default packages on Ubuntu, and this version is considered more stable despite not being the latest version. Again, this method allows you to install Git using APT with a simple command. Some packages are installed by default, and in Ubuntu 24.04, you should have Git already installed. Verify this by checking its version. $ git --version If Git is not installed in your case, start by updating your package list. $ sudo apt update After updating the package index, we can then install Git as follows. $ sudo apt install git It’s that simple. Once the process runs and completes, Git will be available on your system, and you can configure it to start using it. If you want to install the latest Git version, use the following method. Method 2: Install Git on Ubuntu 24.04 from Source With the first method, we managed to install Git, but the installed version was not the latest. When you source packages from the default repository, you only access the latest stable version. However, this doesn’t mean you can’t get the latest Git version. To do so, you must compile Git from the source. Unlike the previous method, this approach takes more time, and you must run different commands to retrieve the package and compile it. Step 1: Install the Dependencies For us to source and compile Git, different packages are required, and we can install them using the command below. $ sudo apt install libz-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext cmake gcc Those already installed will be skipped during the installation. Step 2:Create a Temporary Directory We need a temporary directory to store and compile the retrieved Git files. We’ve named the directory tmp and navigated into it. $ mkdir tmp $ cd /tmp Step 3: Download the Latest Git Version You can only find the latest Git version from its website. To know which version you should download, visit the Git project website. Once the site loads, locate the latest version. We have v2.44.0 as the latest when writing this post. Next, use curl to download the Git tarball with the below command. $ curl -o git.tar.gz https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.44.0.tar.gz Ensure you replace the command to match the latest version, depending on when you read this post. Step 4: Unpack the Tarball Once you download the Git tarball, we must unpack it using tar. After unpacking, use the cd command to navigate to the Git directory. $ tar -zxf git.tar.gz $ cd git-* Step 5:Compile and Install Git Start by Compiling the Git package using the make command. $ make prefix=/usr/local all Afterward, install the package by running the command below. $ sudo make prefix=/usr/local install Lastly, apply the changes with the command below. $ source /etc/environment That’s it. You now have Git installed. Check the version to confirm that we installed the latest one. $ git --version We have v 2.44.0, which is what we downloaded earlier. Configure Git on Ubuntu 24.04 Now that you’ve installed Git, the next recommended step is to configure your username and email. To achieve this, run the below commands and add your username to use when making a commit and the email address. $ git config --global user.name “your_name" $ git config --global user.email "your_email" You can now start using Git to make your commits on your repository. Conclusion Git is a widely used version control system, and there are two methods for installing it on Ubuntu 24.04. First, you can install it via APT from your default packages. Alternatively, you can source and compile the Git package to get the latest version. That’s it! View the full article
  5. Linux is a multi-user system, meaning multiple users can work collaboratively on a single system. It helps organizations streamline their workflow and divide the workload. Every employee or member who joins the team gets separate user IDs to access the system, and every ID is associated with different permissions(read, write, or execute). That’s why you must know all the aspects of user management to ensure data privacy and system security. However, a Linux administrator needs to know the correct way of creating a user in the system. So, this short guide is about simple methods to create a user in Linux. Although, adduser and useradd commands look similar, they differ in functionality. Hence, let’s look at the best suitable examples of these commands to create hassle-free users. The useradd Command The useradd is a simple command by which you can add any user in the system: sudo useradd -m username The -m option provides the new user with their home directory. The only drawback of the useradd command is that it generates new users without a password. So, to create a password for them, enter the passwd command: sudo passwd username Here, you can add the password for the user. The adduser Command The adduser command is a simpler alternative to useradd. It creates interactive prompts for users to set passwords and other vital details. sudo adduser username After running the command, follow the on-screen prompts to provide the information about the new user. For example, it asks you to provide a password, full name, and other important details for the user. The System Settings Instead of using the terminal, you can create a user from the Settings. First, go to the system settings: Now, search “user” from the search bar: Here, you need to click on the unlock and then provide the password to access the Settings as administrator: Click on the “Add User” and add the required details, including the full name, password, and access privileges: Finally, click on the add button to make changes successful: A Quick Wrap-up User management in Linux is fundamental, and many users still need to learn how to create a user. Hence, in this guide, we have explained the same using three simple methods. The useradd and adduser are two commands that’ll help you accomplish this task using the command line. Alternatively, you can access the System Settings and add the users manually. View the full article
  6. Directories are containers that hold various data, including text, media, and zip files. As a system administrator, you can create, move, or delete these directories. Although deleting a directory in Linux is simple, many beginners need to learn the correct ways to do it. That’s why Linux users sometimes delete important directories, which can lead to major issues. In this quick blog, we have included all the possible ways to delete a directory in Linux. Here, we have included commands and a simple GUI method to delete a directory without hassles. So let’s look at them all with the appropriate examples: The rm Command The rm command deletes files and directories, where ‘rm’ stands for ‘remove.’ You can use the following rm command to delete a directory: rm -r directory_name We use the ‘-r’ option to delete the target directory, its content, and subdirectories. For instance, let’s delete the music directory using the rm command: rm -r Music Note: Be cautious using the rm command because it permanently deletes files and directories without confirmation. The rmdir Command Unlike rm, the rmdir command is designed to remove empty directories. For example, to delete an empty directory named Script located in the home directory, please use the following command: rmdir ~/Script Note: When using the rmdir command, please specify the target directory and its path. Without the correct path, this command will result in an error. Similarly, you can also use the rmdir to delete a subdirectory. For example, let’s delete the Images subdirectory available in the Documents directory: rmdir ~/Documents/Images The find Command Despite the original function of the find command, it also lets you delete files and directories with its ‘-exec’ option. However, this feature is only applicable to empty directories. For example, to remove a directory this way, use: find directory_name -type d -exec rm -r {} + Here, the ‘-type d’ option specifies that the searched term is the name of a directory. The ‘-exec rm -r {} +’ option guides the find utility to execute the ‘rm -r’ command for every directory found with the input name. Moreover, replace the directory_name with the name of the directory you intend to remove: find Scripts -type d -exec rm -r {} + A Quick Summary Deleting files and directories is a fundamental task for an everyday Linux user. This article demonstrated different methods for deleting a directory using appropriate examples: the rm, rmdir, and find commands. You can choose the rm to delete directories and files, whereas the rmdir only works to delete empty directories. Lastly, the find command allows you to delete directories with the help of the ‘-exec’ option. View the full article
  7. Tar offers a great way of combining multiple files and directories in a single package. Tarball facilitates efficient data transmission and allows you to conserve disk space by reducing the file size of numerous files. So whether you are looking to create backups, transfer files, or distribute software packages, it is your one-stop solution for everything. However, many users have yet to learn how to make a tarball. This short guide has complete information on creating a tarball in Linux. How To Create a Tarball in Linux Although tar comes preinstalled in most Linux distributions, you can verify it using: tar --version If the tar utility is not available in the system, please install it by entering the following commands: Operating System Command Debian/Ubuntu sudo apt install tar Fedora sudo dnf install tar Arch Linux sudo pacman -Sy tar openSUSE sudo zypper install tar Once you are done, please run the below command to archive a directory: tar -cvf archive.tar file.txt directory_name Here, replace the file.txt and directory_name with the names of the files and directories you want to archive. For multiple files/directories, mention their names separated by a space. The -c option tells the utility to create a new tarball. The -v option enables the verbose mode to display the list of files included in this archive. The -f option lets you specify the name of the new tarball. For instance, let’s archive the Documents directory in the doc.tar: tar -cvf doc.tar Documents If you want to list and display the content of the tar file, then you can use the -t option: tar -tvf doc.tar Similarly, you can archive multiple directories into a single tarball using the below command: tar -cvf list.tar Documents Music A Quick Wrap-up So this is how you can archive and create a tarball in Linux. In this quick guide, we have included simple examples to explain how to create the tarball and check its content. Moreover, we have explained an easy approach to archive multiple directories into a single tarball. You should use the v option as it will help you to verify the archived content. View the full article
  8. Rufus has become immensely popular due to its versatility, reliability, and efficiency. It is a tool for creating bootable USB drives to run multiple operating systems on your PC or laptop. Moreover, you can also use it to create live environments, allowing you to run an operating system without the need for installation. As Rufus is a Windows application, most Linux users are unaware of how to use this tool on their systems. In this short guide, we will walk through the steps of installing and using Rufus in Linux as easily as possible. How To Use Rufus in Linux You can not directly install Rufus on your Linux devices because it is primarily designed only for Windows. However, it is possible with Wine, which enables a Linux system to run Windows applications. So, let’s start with installing Wine. Please open the Terminal and Enter the following commands: sudo apt update sudo apt install wine Now go to Rufus’ official website, and click on Other versions(GitHub) under the Downloads section. Search for Rufus-3.22p.exe and download it. We downloaded this version specifically because Wine does not yet support newer versions. After downloading the file, open the terminal and enter the following commands: cd /path For example, let’s replace the path with the actual path, i.e., /Downloads: Cd ~/Downloads Now, run the following command to run the Rufus installer: wine rufus-3.22.exe Once you run the above command, the system will pop up to ask for your confirmation about the installation: After running the installer, you will get a new window of Rufus: How To Use Rufus Rufus’s user interface is simple but can be elusive for users. Considering that, here are the steps you should follow to use it: Insert the USB drive and select it in the Device dropdown. Remember, the USB drive must be empty. Then, select your desired operating system’s disk or ISO image under Boot Selection. Configure the settings according to what suits your situation best. Once you’re done configuring the settings, click the “start” button. It will warn you that the data present on the drive will be destroyed; just press “OK” to begin creating the bootable drive. Wait for it to complete the process, eject the USB drive, and finally, it will be ready to use. A Quick Wrap-up Rufus is critical in enabling users to use multiple operating systems on the same device. It lets you create bootable USB drives for various systems, but many Linux users do not know how to use it on Linux. Therefore, this guide briefly explains the process of running Rufus using Wine(Linux utility to run Windows applications). View the full article
  9. The post How to Install FreeBSD 14.0 with Static Network IP Address first appeared on Tecmint: Linux Howtos, Tutorials & Guides .FreeBSD is a free Unix-like operating system developed by the Berkeley Software Distribution. It is available for all major platforms, including x86_64, IA-32, PowerPC, ARM, The post How to Install FreeBSD 14.0 with Static Network IP Address first appeared on Tecmint: Linux Howtos, Tutorials & Guides.View the full article
  10. Linux is a command-based operating system that relies primarily on commands to execute tasks. During a terminal session, you run various commands; noting them is not feasible as it can be time-intensive. That’s why the history command is handy to view previously run commands in the terminal. It helps you recall and reuse earlier commands and troubleshoot unexpected system behavior. So this short blog will briefly explain how to use the history command in Linux, including its usage, options, and some examples. How To Use the history Command in Linux You can run the below command to check the history of the previously executed commands: history The above command, by default, shows a list of up to 1,000 commands. If you wish to view a specific number of commands, go for the below command: history N Where N is the required number of preceding commands. For example, to see the last 3 commands executed, we will enter: history 3 Please combine history with the grep command to search for a particular earlier command. For instance, to search for occurrences of cd: history | grep cd If you want to reuse any previous commands, please check that command’s line number. For example, let’s reuse the cd ~/Documents available in the 9th row: !9 If you want to clear the history, then please use the -c option: history -c Moreover, the ‘-d N’ option deletes a specific entry at N. For example, let’s delete the history from raw 200 to 275: history -d 200-275 A Quick Wrap-up The history command is a valuable tool in Linux’s range of commands. It allows you to recall and manage previously executed commands. This blog demonstrated how to use the history command with practical examples. Furthermore, we explained two primary options to manage the command history. View the full article
  11. One way of installing packages in Ubuntu 24.04 is by installing their .DEB file. The .DEB extension is used with Debian software packages, and there are different approaches you can take to install the .DEB files on Ubuntu 24.04. This post gives five methods to install deb files on Ubuntu 24.04. Some methods are based on the command line, while others involve installing the deb file graphically. 5 Methods to Install deb File on Ubuntu 24.04 Ubuntu is a Debian-based Linux distribution. As such, it allows installing packages as deb files, and there is no specific installation method to follow. Which method to use depends on your preference but if you are new to installing deb files, below are the various approaches you can take. We are installing the Google Chrome deb file stored in our downloads folder for this case. You must first download the deb file and then proceed with the installation methods. Method 1: Via dpkg One of the most convenient ways of installing deb files on Ubuntu 24.04 is by using the dpkg command. The command acts as a package manager that allows you to install and manage deb packages. To use the dpkg package manager, run the below syntax and add the path to the target deb file. $ sudo dpkg -i [package_path]; In our case, we have it in our current directory. The installation process will initiate and the deb file will get installed. You can now locate and start using the installed package from your applications. Method 2: Via APT The apt package manager mainly installs packages by sourcing them from the Ubuntu repository. However, you can also utilize it to install deb files in Ubuntu 24.04. Like using the dpkg command, APT requires you to specify the path to the target deb file. Otherwise, it will try sourcing it from the Ubuntu repository. $ sudo apt install [package_path]; Even though we have the deb file in our current directory, we must specify so when running the command. Once you enter your password, APT will install the deb file and the package will be available in your applications. Method 3: Via GDebi Command Line Third on our list is GDebi. It is a command-line and GUI-based package manager that allows installing local deb packages. However, the tool isn’t installed by default on Ubuntu 24.04. Therefore, start by installing it using the below command. $ sudo apt install gdebi -y Once it installs, you can use it via GUI or command-line. For this method, we are working with the command-line version. Run the below syntax to install your target deb file. $ sudo gdebi [package_path] Press ‘y’ and hit the enter key to install the deb file. Once the process is completed, your package will be available from your applications. That’s how you can quickly use GDebi to install a deb file via the command line. Method 4: Via GDebi GUI If you are uncomfortable using the command line, you can install deb files on Ubuntu 24.04 via GUI. One approach is to use the GDebi GUI version. Start by opening up your files and navigating to the target deb file. Next, right-click on the deb file and select the option to ‘Open with.’ Select the GDebi Package Installer from the list and click the Open button at the top. Once the installer loads, click on the Install Package option. Authorize the installation by entering your password. That’s it. The installation process will begin and once it completes, you will have your application available on Ubuntu 24.04 and ready for use. Method 5: Via App Center The last approach you can use to install deb files on Ubuntu 24.04 is the App Center. The procedure is similar to what we had in the previous method. Start by locating where the deb file is saved in your Ubuntu 24.04 Next, right-click on the image and select the Open with > App Center option. Install the package once it loads, and ensure you enter your password when prompted to. That’s it. You can now open the installed application and enjoy using it. Conclusion For Debian-based Linux distributions, you often encounter cases where you want to install deb files for given applications. The good news is that you have numerous options to install the deb files, and this post has shared the five approaches you can use. With that, you now understand what it takes to install deb files on Ubuntu 24.04. View the full article
  12. Environment variables define the behavior of processes running on the system. These variables store information about the computing environment, and applications can access it to adapt their behavior accordingly. Hence, environment variable configurations impact your Linux system and its applications. Moreover, you can customize the computing environment by setting environment variables. Therefore, understanding how to declare environment variables is essential for all Linux users. It undoubtedly enhances efficiency and productivity. This short blog will discuss different ways of setting environment variables without difficulties. The export Command You can use the export command to set an environment variable. To use it, enter the below command in the terminal: export MY_VARIABLE=value This command would set an environment variable MY_VARIABLE with its value as “value.” You can use the command similarly by replacing “MY_VARIABLE” and “value” with your desired variable name and value, respectively. For example, to set a variable named PRATEEK_EV with the value “Hello World!”, enter: export PRATEEK_EV="Hello World!" On successful execution, it does not display anything, but you can confirm it using the printenv command. The set Command The set command is an alternative to the export command, which creates variables temporarily within a script or session: set MY_VARIABLE=value Again, replace the values according to your preferences. For instance, retaking the above example: set PRATEEK_EV="Hello World!" Permanent Environment Variables The environment variable you create using the set and export commands is temporary and stays in the system until you close your shell session. If you plan to set an environment variable for more extended periods, export it in the bash configuration file. nano ~/.bashrc The tildes(~) symbol indicates the home directory, and bashrc is the name of bash’s configuration file. For zsh or fish shells, you can use “nano ~/.zshrc” and “nano ~/.config/fish/config.fish” respectively. Now, append the below command into the file and save it: export MY_ENV="Information" A Quick Wrap-up Environment variables help shape the behavior of applications and scripts on Linux systems. Despite this importance, users often need to understand how to set environment variables. Hence, this blog provides the three easiest ways of setting environment variables using suitable examples. View the full article
  13. Linux is full of commands that allow you to achieve every task with numerous commands. Having these text-based commands is handy; you can unleash the full potential of your Linux system. Moreover, the terminal is the most popular command line interface (CLI) for executing these commands. While working in the terminal, the screen gets cluttered with various commands and their outputs. Hence, erasing everything from the terminal window is a basic yet essential task for users, especially those unfamiliar with the CLI. In this short article, we have included various methods to clear the screen in Linux Clearing the screen is fundamental whether working in the terminal or accessing any remote server via SSH. There are three ways for it, so let’s take a look at all of them: The clear Command The clear is the most straightforward method to wipe the screen: clear After executing the command, the system will immediately clear the terminal window, giving you a blank screen. The Keyboard Shortcut If you prefer keyboard shortcuts over commands, use CTRL+L. Unlike the clear command, this shortcut does not delete any contents of your current terminal window. Instead, it scrolls down the window to make it appear like the screen has been cleared. For example: echo "Hi Prateek" Now, press CTRL+L. The ANSI Escape Sequences- Advanced Method Advanced users or those proficient in terminal interactions can also use ANSI escape sequences to clear the screen. The escape sequence for this is ‘\033[2J’, and it works very similar to the keyboard shortcut. For instance: echo "Hi Prateek, this is a test message." echo -e "\033[2J" In this command, the ‘-e’ option instructs the shell to start interpreting the backslash escapes in the entered sequence. On execution, you’ll get the below result: Conclusion Even a beginner in Linux must know how to clear a terminal screen to navigate efficiently in the CLI environment. This short tutorial contains three methods to do so: the clear command, the CTRL+L keyboard shortcut, and an ANSI escape sequence. The clear command and the keyboard shortcut are the primary approaches, whereas the escape sequence is just an addition for an advanced user. View the full article
  14. Linux is widely known for its robust filesystem. This hierarchical structure stores and organizes all kinds of data, including files and directories. It offers disk fragmentations, symbolic linking, journaling, file permission management, and more. Hence, a beginner must understand the basics of Linux’s filesystem to navigate and manage the system efficiently. In this article, you will get to know about the fundamentals of the filesystem and explore its various types. We have also included the directory structure and the commands essential for you to get started. Types of Filesystems You’re not bound to use only the default filesystem when using Linux. It supports a few filesystems which you can install on your devices: Fourth Extended Filesystem(ext4): This is the default and the most widely used filesystem in many Linux distributions. X Filesystem(XFS): This file system is commonly used in enterprises. Its most prominent features are its scalability and performance. B-Tree Filesystem(Btrfs): This is the latest and most modern filesystem, which lets you take snapshots, create subvolumes, and more. It can be used in systems where you want advanced functionalities. Basic Directory Structure Regardless of their types, every filesystem in Linux follows a hierarchical tree-like structure that forms its backbone. It lays the foundation for many concepts, like navigation and management of files. Furthermore, the root directory is usually represented by ‘/,’ and all other directories branch from the root itself. Following is a list of other essential directories that you should know: /bin: Bin is binary and contains all binary executables required for system boot and repair. It is the storage house of standard system utilities like mv, rm, ls, etc. Moreover, anything stored in this directory is accessible to all the users. /tmp: This is a temporary storage location for files that are not significant beyond the current session. Your system clears all these files upon reboot. /boot: During boot, operating systems refer to some files such as Kernel images, bootloader configuration files, and initial RAM disk files. The /boot directory holds those files and is crucial for kernel upgrades. /etc: This directory comprises the configuration files for system-wide applications and settings. For example, /etc/passwd stores user password information, and /etc/hosts stores network configurations. You can modify these files to customize system behavior. /home: When multiple users use a single system, most get their home directories for their personal space. The subdirectories within the /home directory correspond to users who have read, write, and execute permission in their respective directories. /sbin: Like binaries, the sbin directory consists of essential system binaries. On the contrary, you must have the root privileges for execution. For example, it stores utilities like fdisk, ifconfig, and iptables. /var: It stores variable data, such as log files and spool directories, that changes while you operate the system. Administrators can monitor and manage its contents to ensure proper system functioning and resource utilization. Common Commands The cd command lets you change your current directory. cd /path Put your desired path in place of /path, and it will move you to that path. The ls command displays the contents of a directory, for example: ls The mv command helps move and rename files. mv file_name.txt target_location Here, replace file_name.txt with the name of the file you want to relocate and mention the intended new path in place of target_location. You can copy files or directories to a specific path using the cp command. For instance: cp file_name.txt /path With the rm command, you can delete any file. However, you should do it carefully, as the deleted files won’t be recoverable. For example: rm file.txt A Quick Wrap-up Understanding the filesystem is essential for any Linux user, whether a beginner or an experienced professional. Hence, this guide explores its various aspects, starting from different types of filesystems. We also looked at the directory structure and discussed using various prebuilt directories. At last, we explained the common commands you would need while navigating your systems. View the full article
  15. In operating systems, files are the building blocks that contain data, configurations, and programs. They aid in system customization, data organization, scripting and programming, user collaboration, and more. There are various types of files, including text, binary executable, media, system, and many more. Despite this variety, text files contribute roughly 50 to 80% of the data. Hence, it is a crucial aspect that users must be aware of. Many beginners do not yet know the approaches to making new text files. So, in this guide, we briefly describe how you can create a file in Linux without any hassles. There are three simple methods for creating a file in Linux: a text editor, the touch command, and the redirection operator. Let’s divide this section to discuss each in detail using suitable examples. The Text Editors Linux’s text editors are powerful yet simple tools to create text files and edit them. There are various text editors like Nano and Vim in Linux systems. For instance, to create a file, say sample.txt using nano, your command would be: nano sample.txt On entering this command, it will create the sample.txt file and open it in the text editor window. Similarly, you can use the following command to create the text files through the vi text editor: vi sample.txt<span style="font-weight: 400"> </span> The touch Command The touch is used to create the empty files and update a file’s timestamps quickly. To use it for creating a text file, use the following command: touch filename.txt Redirect Operator Suppose you execute a command or script whose output you want to save in a text file. This is where the redirect operator “>” comes into play. For example, to save the output of an echo command in a new text file, “sample_file.txt,” you should use: echo "Hello, this is a sample file." > sample_file.txt A Quick Wrap-up Knowing how to create a file is a must-have skill for every Linux user. This guide lists three approaches that you can use to make a text file. These methods involve using a text editor, the redirect operator, and the touch command. While the way through the text editor is simplest, the other two methods have their use. View the full article
  16. In Linux, you can create groups to organize users having similar privileges collectively in a single place. Groups allow users to share resources, directory access, permissions, etc. Moreover, if you perform any operation on a group, it applies to all of its members, reducing the time consumed to do it manually for everyone. However, as a beginner in Linux administrator, it can be sometimes tricky for you to add and modify users in a group. So, this quick guide is about the simple way to create and add a user to a group in Linux. How to Add a User to a Group in Linux The usermod is the simplest command to add users to the group. You can also use the usermod to modify user attributes like username, password, home directory, group ID, etc. Here is the example of the usermod to add a group: sudo usermod -aG groupID userID The -a option appends users without removing them from the current group. Meanwhile, the -G option lets you specify the group you want to add the specified user. Please replace user_ID and group_ID with the target user and group name(where you want to add them), respectively. So, let’s add a user name, “Prateek,” to the “Developer” group, but first, you need to find the user_ID and group_ID. Hence, you can use the id command for user_ID and getent command for group_ID: id prateek getent group Developer Now, add these values in the usermod command to add a user to the group: sudo usermod -aG Developer prateek Finally, run the below command to verify whether the user is successfully added in a group: groups prateek A Quick Wrap-up Groups streamline the process of managing users and their permissions. Users with sudo privileges can perform many operations, such as user add and delete. However, Linux administrators need to understand the basics of the groups. That’s why we have explained a simple command to add a user to a group in Linux. View the full article
  17. Anaconda is an open-source Python and R programming language distribution. It is powerful software for managing environments, packages, and other development tools like Jupyter Notebook and Spyder. Moreover, it comprises over 250 packages, making it easy to kickstart your development journey. Anaconda’s features include package management, creating virtual environments, integrated development environment (IDE) support, and more. Its reproducibility function generates easy-to-share projects. This short guide provides brief information about installing Anaconda on Linux without any hassles. How To Install Anaconda First, download the Anaconda installer from the Anaconda’s official archive. Please ensure to download an appropriate version for your Linux architecture. Here are the commands you can follow: sudo apt update wget https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh Although we use the wget command to download the installer, you can alternatively download it through Anaconda’s website. Once you have downloaded this installer script file, run it using the below command: bash Anaconda3-2024.02-1.Linux-x86_64.sh Now, follow the on-screen instructions, then it will ask you to confirm the installation path. Press Enter and keep it on the default path. However, you can also specify your desired location. Lastly, enter ‘yes’ to automatically activate Conda on system startup. You can change this anytime by running: conda init --reverse $SHELL Finally, the terminal will show, “Thank you for installing Anaconda3!”. Before moving further, you need to activate and initialize the Anaconda3 through the following command: export PATH="</path of anaconda3/>bin:$PATH" Make sure you change the above command from </path of anaconda3/> to the actual path of Anaconda3 according to your system. Verifying all new packages is a good practice to avoid unintentional system errors. So, Let’s now verify Anaconda’s installation by checking the version information: conda --version It shows the version number correctly, so there’s no issue. Otherwise, you would have to reinstall it using the above steps. How to Update Anaconda If you anytime need to update Anaconda, run the below command: conda update --all Difference Between Anaconda and Miniconda Anaconda is a full-packed distribution with over 250 standard machine learning and data science packages. Miniconda is a minimal installer that consists of Conda, Python, and a few more packages, and it lets you install other packages according to your needs. Anaconda distribution is best for beginners who are unaware of the packages they should use. Miniconda, on the other hand, is for users who know what packages they want to use. A Quick Wrap-Up Anaconda is powerful open-source software that can run machine learning projects, create virtual environments, distribute packages, and more. It lets you run your Python and R language programs smoothly. This article comprehensively demonstrates installing the Anaconda command line client on Linux. Moreover, we have also added a simple command to update Anaconda quickly. View the full article
  18. File compression is a process by which you can collectively contain a chunk of data in a single place. It eases file transferring, storage management, data organization, and more. In Linux, tar and zip are the two most common file compression formats. You can also compress the files and password-protect them. However, many Linux users get confused when compressing files quickly. So, this short article is about simple methods of syncing files in Linux. There are various commands and simple GUI approaches are available to create zip files without hassle. Let’s examine each method with examples. The zip Command The zip command is a powerful utility that compresses files and directories into a zip archive. Here’s a simple command you can use: zip [options] zipfile_name.zip file.txt directory_name Please replace [options] with appropriate options and zipfile_name.zip with the desired file name of the new zip file. Moreover, file.txt and directory_name represent the files you need to compress. For example, let’s use the following command to create Scripts.zip by adding file1.txt and file2.txt files: zip -r Scripts.zip file1.txt file2.txt In the above command, we used the -r option to perform the file compression recursively. In case you want to create a zip file and make it password-protected, then you can use the following command: zip -P 12345 Scripts.zip file1.txt file2.txt If you want to zip all the files having the same extension, please run the below command: cd ~/Documents zip -r script.zip *.txt Similarly, you can zip all files of a directory using a single command: zip -r home.zip * In the above command, home.zip is a zip file, and * is a wildcard to add everything from the specific location. The tar Command The tar command is another versatile utility used to archive files in Linux. However, unlike zip, it requires you to use compression tools like gzip or bzip. To zip a file using the tar command, use the below command: tar -czvf zip_name.tar.gz file.txt directory_name Here, the options in ‘-cvzf’ instruct tar to create a gzip-compressed archive(c) using gzip(z), provide verbose output(v) and specify the filename(f). Again, replace zip_name in zip_name.tar.gz with the name of the compressed file you want to create. To use the tar command in the above example, enter this command: tar -czvf Scripts.tar.gz file1.txt file2.txt From The File Manager First, open File Manager and select the files you want to include in the zip file. Now right-click and here click on the Compress option: Here, you can name the zip file and also add the password for it: Conclusion Zipping files in Linux is straightforward and can be accomplished using commands like tar and zip. The zip command is simple and directly compresses data into a zip file, whereas the tar command offers flexibility with its various options. We suggest you experiment with these options to find what suits you best. View the full article
  19. Understanding and effectively utilizing networking tools in this digital world is crucial to maintaining proper internet functions. Every Linux distribution comes with various preinstalled network tools like host, traceroute, dig, nslookup, etc. These tools help you analyze and troubleshoot arising connectivity issues. The dig or Domain Information Groper command is a versatile DNS lookup utility that allows you to query DNS servers for their records. Subsequently, it helps you diagnose DNS-related problems and gather essential information about domain names. This article will cover how to use the dig command in Linux without hassles. You can use dig commands for tasks like DNS querying, accessing multiple types of DNS records, performing reverse DNS lookups, and more. Hence, let’s divide this section further to explain different use cases. Basic DNS Query The default dig command runs a DNS query to retrieve the DNS records associated with a particular domain name: dig website.com Replace “website.com” with the domain you want to tailor your query. For instance, we will use the dig command below for Google’s domain, “google.com.” dig google.com Specific DNS Records Types There are numerous types of DNS records, but you can query specific DNS record types using the ‘-t’ option. For example, let’s retrieve the mail exchange records for Google: dig -t MX google.com Query a Specific DNS Server If you want to query a specific DNS server, specify its IP address using the ‘@’ symbol in the following manner: dig @8.8.8.8 google.com Here, replace 8.8.8.8 and google.com with your target IP address and domain. On running, you’ll get the results as follows: Reverse DNS Lookup Reverse DNS lookup lets you map an IP address to a domain name, providing information about the domain associated with that IP address. Administrators primarily use it for network troubleshooting, while other uses include email server verification, login and security, and content delivery optimization. To use it, please enter the command below: dig -x IP_address Replace IP_address with your IP address. Again, taking Google’s example, if we put 8.8.8.8 in the dig command: dig -x 8.8.8.8 The last section shows “dns.google,” indicating that the IP address we entered corresponds to Google. Wrapping Up The dig command is a powerful and versatile tool for network administrators and users. It provides various DNS querying features, making it invaluable for network diagnostics. Moreover, we briefly explain querying on a specific server, reverse DNS lookup, and querying according to DNS record types. View the full article
  20. In Linux, commands help you achieve tasks like troubleshooting network issues, executing scripts, organizing system structure, and more. Moreover, some situations require you to run lengthy commands repeatedly, and typing them consumes much of your time. In this case, the alias command is the savior, creating shortcuts for long commands or a sequence of commands. It also improves productivity and reduces errors. However, many users and even Linux experts have yet to learn how to use the alias command correctly. So, this short tutorial will quickly explain how to use the alias command in Linux without any hassles. The alias Command with Examples The alias command is simple, and you can use it as: alias alias_name='command' Please replace the ‘alias_name’ and ‘command’ with the name of the alias and the target command, respectively. In simple words, alias means the shortcut command you want to create. For instance, you can create the following alias if you frequently use the ‘sudo apt update && upgrade’ command to update the system: alias update='sudo apt update && upgrade' Now, whenever you type and run ‘update’ in the terminal, the system will automatically start updating: The above aliases last only for the current terminal session. However, if you want to make a persisting alias, add it to your shell’s configuration file. Typically, for Bash, it is the ‘.bashrc’ file. Let’s retake the above example to convert ‘update’ to a permanent alias. First, you have to open the configuration file with a text editor: nano ~/.bashrc After that, add the aliases in the following manner: alias update='sudo apt update && upgrade' Finally, save the file and run the ‘source ~/.bashrc’ command to apply the changes. A Quick Wrap-up The alias command in Linux empowers a user to customize the command line experience and enhance productivity. By creating personalized shortcuts, you can easily streamline your workflow and navigate your system. Here, we discussed the method to create temporary and permanent aliases. Furthermore, remember all the mentioned tips to maintain clarity and efficiency. View the full article
  21. Managing software packages in Linux is essential to maintain regular processes and services. The Advance Package Tool, or APT, is a package manager developed especially for Ubuntu, Debian, and a few similar Linux distributions. Apt offers various options to install, update, and upgrade software packages. APT is a reliable and easy-to-use utility that you can primarily access using a command-line interface. Moreover, it also ensures that all the required components for a given package are installed properly when installing and upgrading packages. However, many beginner users are unaware of APT’s capabilities. So, this guide will comprehensively describe APT in Linux with examples of how to use it. How to Use APT to Install Packages in Linux Using APT is simple, so let’s start with installing or upgrading the system through the following command: sudo apt update Now, please run the following apt command to install your desired utility: sudo apt install util_name In this command, you should replace util_name with the package name you want to install. For instance, to install the rsync utility, we will use: sudo apt install rsync Similarly, you can use the remove option to completely uninstall the package. For example, to remove the rsync utility, please run the below command: sudo apt remove rsync In case you want to remove all the unused packages from the system then please use the autoremove option: sudo apt autoremove You can also use the full-upgrade option to upgrade the system by removing, upgrading, and installing packages: sudo apt full-upgrade If you intend to upgrade a specific package, please use the following command: sudo apt install --only-upgrade util_name Here, replace util_name with the particular utility name you want to upgrade. Let’s upgrade the curl utility for an example: sudo apt install --only-upgrade curl Moreover, you can run the following command to see the list of all the available options in the apt utility: apt --help apt-get Vs. apt Beginners and even a few seasoned Linux users need clarification on apt and apt-get. Both the apt and apt-get commands are a part of the APT utility, where apt-get is older and apt is a newer and more advanced tool. On the other hand, apt includes additional features, like verbose output, which are not available in apt-get. However, apt-get still holds the top position as the widely used package manager in Debian-based distributions. A Quick Wrap-up APT is a popular Linux package management tool with multiple commands for installing, updating, and upgrading software packages. For users unaware of its correct usage methods, this guide comprehensively explains what apt is and how you can use it to install various packages in Linux. Furthermore, we describe a few apt commands to upgrade, uninstall, list, remove, and get detailed information about those software packages. View the full article
  22. Screen recording feature is useful for various purposes, from creating video tutorials to troubleshooting technical issues. Fortunately, Linux also has screen recording utilities that offer simple to use UI and various features. On the other side there are some Linux distros containing the built-in screen recorders like screencast. The Screencast lets you choose whether to record the whole screen or a particular selection. You can use it for educational tutorials, content creation, technical support, and official collaboration(recording meetings for future reference). So in this quick guide, we have included the ways to install and use the screen recorder in Linux. Peek: Screen Recorder in Linux Peek is one of the best screen recording tools available, but it is not a pre-installed utility. That’s why you have to install it by running the following command: Operating System Command Debian/Ubuntu sudo add-apt-repository ppa:peek-developers/stable sudo apt install peek Fedora sudo dnf install peek CentOS flatpak install flathub com.uploadedlobster.peek flatpak run com.uploadedlobster.peek Once you install the Peek utility, you can open it from the Application Menu or run the following command: peek Now, you can select the type of format in which you want to record your screen. For example, let’s select MP4 from the menu: Finally, click on the green button to start recording. Moreover, you can change the window size from the three lines at the top right corner: GNOME Built-In Screen Recorder Linux distributions come with different screen recording tools, but one of the most commonly used is GNOME’s built-in screen recorder. GNOME is a part of many distros, such as Fedora, Ubuntu, Debian, RHEL, SUSE, etc. So you can use the following steps to use screen recorder: To open the Screen Recorder, you can either press CTRL + Alt + Shift + R or Navigate to your system’s applications menu and search for “take a screenshot.” Now, from the menu, you can choose to record the whole screen or just a selection, depending on your requirements. For instance, let’s record the screen by clicking on Screen. It will remove the adjustable selection frame seen in the above image. Finally, you can start recording by clicking on the record button. Once the system starts the recording, you will see the current recording progress on the top-right of the screen, as shown in the image below: When you want to stop and save the recording, click the white square(stop recording) button accompanied by the recorded time. This action will result in a pop-up suggesting that the screencast is recorded, which you directly click to view the recording. In Ubuntu systems, you can access the screen recordings by navigating to Home > Videos > Screencast. A Quick Wrap-up Recording the screen is an ordinary Linux user’s fundamental and essential task. It helps troubleshoot the system, create video tutorials, collaborate officially, and more. Therefore, here we have explained the simple ways to use the screen recorder in Linux. You should remember the shortcut mentioned above to open the recording tool efficiently. View the full article
  23. The cat or concatenate command is a versatile utility for combining two or more files. You can also use the cat command to print a file’s content on the terminal without opening it in a text editor. The cat command has various other functionalities like appending to files, displaying the number of lines, creating new files, etc. However, many users, especially beginners, know little about the cat command. So this article has everything a novice needs to know about the cat command in Linux. How To Use Cat Command in Linux As we have mentioned earlier, the cat command is used to display a file’s content. So here is the basic expression of the cat command: cat [options] <file> Now let’s take an example to display the content of the script.txt file: cat script.txt If you have run a script or a piece of code and want to save its output to a file, please run the following command: cat > output.txt If any other file named ‘output.txt’ does not exist in your current directory, this command will first create it. Then, it will save the output of the previously executed command into it. To concatenate multiple files and then display their content, use the following command: cat file.txt filename.txt Along with the file contents, you can show their line numbers using the -n option: cat -n file.txt You can use the below command when you have two files, i.e., file1 and file2, but want to append the content of file2 to file1: cat filename.txt >> file.txt Similarly, you can clone the content of one file to another: cat file.txt > filename.txt A Quick Recap The cat command is a powerful and versatile utility offering multiple features. However, users often are unaware of its true potential, which leaves it underutilized. Therefore, this article briefly explains the cat command, its options, and various use cases. We have demonstrated how to use the cat command to display a file’s content, make a file’s copy, append it to another file, and show the number of lines, etc. View the full article
  24. YUM, or also known as Yellowdog Updater Modified, is a package management tool developed by Yellowdog Linux. It is the default and widely used software package manager in Fedora, RHEL, CentOS Linux systems, etc. Its primary features allow you to install, upgrade, and uninstall software packages on your devices. YUM has been a reliable tool and evolved into its next-generation version, Dandified YUM(DNF). Furthermore, you can easily access YUM through the command line, making it the preferred choice of most administrators. However, many users still need to discover and want to learn various use cases of YUM. This quick guide will briefly describe YUM in Linux and demonstrate some examples of its use. How to Use YUM in Linux You can install any new software using a simple yum install command followed by your desired package name. For example, to install the r sync utility, we would use: yum install rsync Additionally, you do not need to worry about the dependencies the new packages need because YUM takes care of it all. You can use the below-given command to update any particular package: yum update package_name Please replace ‘package_name’ with the package name you want to update. For instance, let’s update the curl utility: yum update curl Similarly you can completely remove a package from your system through the following command: yum remove package_name Again replace ‘package_name’ like shown in the above section. After executing this command, enter ‘y’ to confirm the removal of your target package and its dependencies. For example, if we have to remove the curl package installed in the previous section, we will run: yum remove curl If you want to view detailed information about a package before installing it immediately, use the yum info command. For example: yum info curl It will display information about Curl’s latest version, release, size, license, and description. You can also take a brief look at the packages installed on your system by running: yum list installed In case you are unable to recall the exact name of your desired package, use the search function as follows: yum search [specific_keyword] Just replace [specific_keyword] with your target keyword. It will show all the matching package names. A Quick Summary YUM is the default package management utility in Fedora, RHEL, CentOS, and other similar Linux distributions that the Yellowdog Linux originally developed. This guide quickly explained YUM in Linux with the help of multiple examples. Here, we demonstrated how to use YUM to install, remove, and upgrade packages on your systems. View the full article
  25. Whether you launch the file manager, run a system service, or execute a command in the terminal, each action initiates a process. These processes run in the foreground or background while consuming system resources such as memory, CPU, and disk space. Therefore, processes essential to ensure appropriate functioning of the system. Moreover, users sometimes need to terminate processes for reasons like an unresponsive application, a software update, security concerns, etc. So, this guide will briefly explain the methods you can use to kill a process in Linux using suitable examples. Linux has three commands– kill, pkill, and killall, to kill processes. Let’s divide this section further to discuss each of these commands one at a time. The kill Command If you want to terminate a process gracefully, do it using the kill command: kill PID Replace PID with the process ID you want to remove. This will send the kill signal to that process. For example, let’s eliminate PID 3906 using the kill command: kill 3906 Please remember that on successful execution, these commands(including those mentioned below) return nothing. The pkill Command You can use the pkill to eliminate a process using its name. If an application has multiple processes running, you can kill them all using the pkill command. pkill process_name Here, putting the application name in place of the term process_name will kill all the processes matching to it. To kill the processes initiated by the Firefox browser, you must enter the following command: pkill firefox The killall Command If a process has various sub-processes running, please run the pkill command to kill them all. pkill process_name Putting the application name in place of the term process_name will kill all the processes matching it. To kill the processes initiated by the Firefox browser, you must enter the following command: killall firefox A Quick Wrap-up Killing processes in Linux is fundamental, and it helps you maintain a healthy system. It assists you in troubleshooting unresponsive applications, resource optimization, etc. This guide outlines all the three commands you can use to kill processes. The kill command helps you while working with the process IDs, whereas the pkill and killall commands come in handy for process names. View the full article
  • Forum Statistics

    42.2k
    Total Topics
    42k
    Total Posts
×
×
  • Create New...