APC

Linux Command-Line Tips & Tricks

There’s no excuse not to school yourself in the ways of Linux command-line operations. Whether you’re accessing the Terminal on your Linux desktop, logged directly into the Bash shell, or intrigued by Windows 10’s support for CLI-based Linux distros, you’ve come to the right place. We’re going to assume you know the basics of Linux’s Bash shell and command language. As a quick reminder, Bash uses a relatively straightforward syntax for each command:

$ utility command -option

The utility portion of the command is the tool you wish to run, such as ls for listing the contents of a directory, or apt-get for triggering the package management tool.

The command section is where you specify exactly what you want the utility to do. Typing apt-get install instructs the package management utility to install the named package, such as:

$ apt-get install vlc

The -option section is where one or more “flags” can be set to specify preferences. Each flag is preceded by one or two dashes, and the most useful is the --help option, which gives a description of the utility, plus available commands and options. Utilities can be run on their own, with a single command or flag, or as a combination of the two.

With this basic framework in place, you’re ready to start exploring how you can interact with Linux via the command line

You’re reading a preview, subscribe to read more.

More from APC

APC9 min readSecurity
How Do You Know If You’ve Been Hacked
Cyberattacks don’t look like you might expect – and they certainly don’t look like they do in the movies. If your security is compromised, you probably won’t see a big flashing sign saying “YOU HAVE BEEN HACKED”, or weird skull-and-crossbones graphic
APC3 min read
Make Windows better
Apple has been phasing out iTunes since 2019, and has now officially launched Windows apps on the Microsoft Store that replace the service – having initially made them available in beta in early 2023. In Apple Music (pictured above) you can access so
APC2 min read
Panasonic’s Astrova In-flight Entertainment System Will Make Economy Travel Less Arduous
Flying in cattle class in the 21st century is generally not all that enjoyable – unless you’re 150cm tall or an excited child that is. You have to put up with shrinking legroom, long queues at check in and security, unappealing food and generally poo

Related Books & Audiobooks