Command Line TV
Episode 2: Viewing files

Episode 2: Viewing files

Command Line TV

About this episode

We look at viewing files using commands like cat, more, less, head, and tail, including using those in short pipelines. We also try opening files in external applications using open or xdg-open (and live dangerously by dumping a binary file with cat).

More from Command Line TV

We use find and locate to dig up lists of files on our system that match certain criteria. We also look at xargs for executing commands on a selected set of files.

We investigate the standard filesystem hierarchy and some tools for managing filesystems.

We create shell scripts using the hash-bang header, and also look at permissions, variables, and loops in the shell.

We explore some more shell basics including redirection to and from files, and command substitution. This feature allows the output of one command to be used as parameters of another command.

In this episode, we explore some of the capabilities of package managers for installing and updating software on your system. Specifically, we look at the ‘apt’ system on Ubuntu GNU/Linux. On other sy…