Linux Tutorials on the topic “shell”
-
Linux Head Command Explained for Beginners (5 Examples)
Author: Himanshu Arora • Tags: linux, shell • Comments: 0 • Updated: Mar 07, 2023In this article, we will discuss the basics of the head command using some easy to understand examples. Sometimes, while working on the command line in Linux, you might want to take a quick look at a few initial lines of a file. For example, if a log file is continuously being updated, the requirement could be to view, say, first 10 lines of the log file every time.
-
How to Manage Packages with APT on Ubuntu
Author: Hitesh Jethva • Tags: linux, shell, ubuntu • Comments: 0 • Updated: Feb 21, 2023APT also known as Advanced Packaging Tool is the command-line tool for managing packages in Debian-based distributions like Debian and Ubuntu. In this tutorial, we will explain how to manage packages using APT command line tool on Ubuntu.
-
How to limit CPU usage with CPULimit on Ubuntu Linux
Author: howtoforge • Tags: linux, shell, ubuntu • Comments: 5 • Updated: Feb 21, 2023This tutorial describes how to limit CPU usage in Ubuntu. I will use CPU-limit utility for this purpose. Cpulimit is a tool which limits the CPU usage of a process (expressed in percentage, not in CPU time). It is useful to control batch jobs when you don't want them to eat too many CPU cycles. The goal of cpulimit is to prevent a process from running for more than a specified time ratio. It does not change the nice value or other scheduling priority settings, but the real CPU usage.
-
-
How to Open Files in Default Desktop Application from Command-Line on Ubuntu
Author: Himanshu Arora • Tags: linux, shell, ubuntu • Comments: 6 • Published: Feb 17, 2023What do you do when you want to open a PDF file in Ubuntu? Simple, double click on the PDF file icon, or right-click and select the "Open with Document Viewer" option. But what if you're asked to do the same task through the command line? Do you know the command line utility that will do the job for you? However, you'll be glad to know that there's way through which you can launch Evince for a PDF file, even if you don't know the fact that a command line utility of that name exists, and that's what we'll be discussing in this article.
-
How to use the fuser command in Linux
Author: Himanshu Arora • Tags: linux, shell • Comments: 2 • Updated: Feb 17, 2023Suppose you are given a task to identify the processes that are using a particular file, and then kill them one by one - all this has to be done from the command line. What would you do? Well, if you are a command line newbie, I am sure you'd be clueless, asking around for help. But command line pros will likely have an idea that there exists a command line utility in Linux that lets you identify processes based on the files (or directories, or sockets) they are accessing. Not only that, the tool also allows you to kill these processes, so you don't have to use the kill or killall commands separately. The command line utility we're talking about is fuser.
-
Getting Started with WordPress WP-CLI and Nginx on Ubuntu 22.04
Author: Muhammad Arul • Tags: linux, mysql, nginx, php, shell, ubuntu • Comments: 2 • Updated: Feb 16, 2023WP-CLI is a tool to provide a command line interface to install and manage a WordPress site. This tutorial explains the installation of Wordpress on a LEMP (Linux + Nginx + MySQL + PHP) server with WP-CLI and shows how to install plugins and themes with WP-CLI on the command line.
-
Linux md5sum Command Tutorial for Beginners (5 Examples)
Author: Himanshu Arora • Tags: linux, shell • Comments: 1 • Updated: Feb 03, 2023While we have already discussed the cksum command line utility, there's another tool that you can use in scenarios where, say, you need to verify the integrity of files during transfers. The tool we're talking about here is md5sum. In this tutorial, we will discuss the basics of this command using some easy to understand examples.
-
Linux pidof Command Tutorial for Beginners (5 Examples)
Author: Himanshu Arora • Tags: linux, shell • Comments: 0 • Updated: Jan 30, 2023Linux command line offers a lot of utilities that work with processes. Once such tool is pidof, which - as the name suggests - gives you the process ID of an already executing process. In this tutorial, we will discuss the basics of pidof using some easy to understand examples.
-
How to Clear Bash History on Linux
Author: Till Brehm • Tags: linux, shell • Comments: 1 • Updated: Jan 30, 2023If you’ve ever used the command line on a Linux machine, chances are you’ve got a long history of commands logged. If you want to clear this history, there are a few simple steps that can help you do just that.
-
Linux pwd Command Tutorial for Beginners (with Examples)
Author: Himanshu Arora • Tags: linux, shell • Comments: 0 • Updated: Dec 02, 2022The pwd command, like ls and cd, is one of most frequently used Linux utilities. Regardless of the kind of user you are (newbie or pro), you'll find yourself using this command line tool a lot. So in this tutorial, we will quickly discuss the basics of pwd through some easy to understand examples.