12 things Linux is easier to do in the command line than graphical software
With Linux, the command line is paramount, and oftentimes, it's significantly faster to open a Terminal and fire up a command that will do exactly what you want.
Here are some Linux things that are much easier to do in the command line than in graphical software.
1. Open Terminal
The first item in the list refers to a keyboard shortcut rather than an actual command. But since you are using a keyboard, it will be very valuable.
In a test on Manjaro Linux with the Xfce desktop, pressing Ctrl + Alt + T was significantly faster than dragging the mouse over the corner of the screen, expanding the system menu, and selecting Terminal from a list of items. You can even specify shorter keyboard combinations for faster command line access.
2. Quick test of system performance
Most desktop environments have system monitors built in, although how to access them isn't always immediately obvious. For example, on the Manjaro virtual machine with Xfce, you click the menu System menu > System , then have the choice to open Htop or Task Manager . Both provide similar information, but you've wasted precious seconds getting there and put unnecessary strain on your wrist.
It's much simpler and faster to open a Terminal, type top, htop or btop and press Enter . You will immediately see memory usage, running processes, CPU usage etc. This is not the only command line tool to monitor system performance and you can quickly open any which of them from Terminal.
3. Kill any program
Sometimes programs misbehave and you want to close them immediately. With the killall command, you can remove the program causing the problem without any hassle.
If you want to close the Midori web browser but it's not responding:
killall midori
. will do the job.
4. Check Disk Usage
It's important to know how much disk space you have on your Linux system so you can install great new programs, play AAA games, and download large files without crashing your computer.
On Ubuntu, you can access the built-in Disk Usage Analyzer by clicking System menu > Utilities > Disk Usage Analyzer .
The initial screen will show you the drives and their free space.
If you open terminal and type:
df -h
You will see your drive information including size, free and used space for each drive, partition, and even temporary file system.
5. Check the weather
Checking the weather is easy. You can pull out your curtains for a live view, open a browser and navigate to your favorite weather service site, or use one of the many available GUI applications.
Even better, you can open a Terminal and trigger a single command to get the 3-day weather forecast for the selected location.
You can achieve this by using the curl command to query the wttr.in weather service:
curl wttr.in/your_town
6. Change the screen resolution
Adjusting the screen resolution is something that doesn't need to be done often - especially if you want to create usable screenshots for tutorials.
The graphical method for changing the screen resolution will vary between distributions, and eventually when you find a monitor that allows the resolution to be changed, you will need to select your preferred option from the drop-down list. -down, click Apply , then click Keep changes or Revert , in the dialog box that appears.
Instead of wasting time with the GUI, open a terminal and type:
xrandr
You will see a list of all available screen resolutions. Decide which one you want to select, then set it up with:
xrandr -s 1920x1080
No annoying confirmation dialog and if you don't like your new screen resolution, just run xrandr again!
7. Transfer files to the server
Most of the servers in the world run Linux and you can easily run one on a simple Raspberry Pi.
If you want to upload files to your server, you'll usually use File Transfer Protocol (FTP) and there are some great FTP clients available for Linux.
A faster and better way to manage your server is to use a combination of Secure Shell (SSH) and Secure Copy (SCP) command line tools.
To SSH into the server to view and perform file operations, simply type:
ssh user@server.ip.address
When copying files, you would use:
scp /path/to/your/files user@server.ip.address:/path/you/want/files/to/go/
Very simple!
8. Backing up Linux files
Keeping your files safe and secure means that you should regularly create backups and keep them in a safe location.
Copying all your files to a USB is an option, and many distributions have a built-in backup utility to help you create a backup archive. For example, Ubuntu's backup tool is Backups.
Timeshift is one of the best third-party backup utilities for Linux and can help you schedule and create backups to run whenever you want.
Timeshift uses the rsync utility to create backups, so why not bypass the middleman by using the rsync command line tool to back up files to a remote server and use cron to schedule them?
9. Install New Linux Software
There are many ways to install software on Linux, and most of these come with a GUI user interface. The most popular distributions will come with a software center where you can search and install apps on your system.
However, software stores on Linux are not without problems and most have a history of being slow, unresponsive and not the best place to find what you are looking for.
Installing packages on the command line can be extremely simple. For example, on Debian-derived distributions, you can search the software repositories with:
apt search package_name
. and install any package of your choice with:
sudo apt install package_name
Equivalent tools exist for Arch Linux, Fedora, openSUSE, and Alpine.
Using the command line you can also add software from non-standard PPA and even compile from source.
10. Manage your to-do list
To-do lists are essential if you want to really get things done, and although you can use Google Keep to create to-do lists or even create custom to-do lists in Google Sheets, but these are unnecessarily complicated.
Taskwarrior is a command-line tool that makes managing your to-do list easy and available in the default repositories of most major distributions.
Once installed, managing tasks becomes easy. You can add a task with:
task add write an article for MUO
List your tasks with:
task
Mark a task as complete with:
task done x
.where x is the number corresponding to a task.
There are more task management options, but the basics will suffice for most people and it's definitely more efficient than creating Google Sheet documents!
11. Software Update
Beginner-friendly distros such as Ubuntu come with an automatic software updater, a GUI that will always appear when you are working on something important and need to be aware of the timing.
Instead of relying on this tool, open a Terminal and if you're using Ubuntu or Debian, type:
sudo apt update && sudo apt upgrade - y
Instead, Arch users can type:
sudo pacman -Syu
12. Search and watch YouTube videos
Youtube is probably the largest video archive in the world, but you don't need to open a web browser and suffer from annoying ads when using YouTube.
Instead, you can use ytfzf in your Terminal to watch YouTube videos. ytfzf is a command line tool that uses the Invidious API to search for the video you want, then uses yt-dlp to download and stream the video to mpv format.
This is simple, easy, effective, and you can do it from any Terminal window.
You should read it
- How to use the Linux command line on Android with Termux
- How to use the which command in Linux
- How to copy (and paste) files and folders from the Linux command line
- 14 interesting Linux commands in Terminal
- Basic Linux commands everyone needs to know
- 5 reasons why people love the Linux command line
- How to use the stat command on Linux
- 20+ essential Linux security commands
- How to print from the Linux command line
- How to schedule Linux commands with 'at'
- How to check whether a Linux PC is 64-bit or 32-bit by command line
- How to use the last command in Linux
Maybe you are interested
Traveling with Kids: How to Make Your Trip Fun and Stress-Free
How to Take Better Architectural Photos with Your Smartphone
8 settings to change to make your Mac trackpad and keyboard work like Windows
How to download Youtube videos to your phone or computer fastest
The simplest way to get back your Roblox account when you forget your password
Why should you shut down your Windows laptop every day?