Posts Tagged command line

LCoTD: File Viewing

Today I’ll be covering commands related to file viewing. These commands are cat, less, head, tail, nl, od, xxd, gv, and xdvi
Read the rest of this entry »

Tags: ,

LCoTD: Directory Operations

Today I’ll be covering directory operations, which are- as you probably guessed- commands that manipulate directories. Specifically, cd, pwd, basename, dirname, mkdir, rmdir, and rm -r.
Read the rest of this entry »

Tags: ,

LCoTD: Basic File Operations

One of the first things you’ll need to do on a Linux system is manipulate files: copying, renaming, deleting, and so forth. There are a number of commands to perform these actions, and they are: ls (list files in a directory), cp (Copy a file), mv (rename (“move”) a file), rm (Delete (“remove”) a file), and ln (Create links (alternative names) to a file). In today’s installment, we will cover all of these commands
Read the rest of this entry »

Tags: ,

LCoTD: Job Control (An Introduction)

Today I’ll be covering job control. What exactly is job control, you ask? No, it isn’t resisting the urge to give your boss the finger every morning at 9:15am. All Linux shells have job control: the ability to run programs in the background (multitasking behind the scenes) and foreground (running as the active process at your shell prompt). A job is simply the shell’s unit of work. When you run a command interactively, your current shell tracks it as a job. When the command completes, the associated job disappears. Jobs are at a higher level than Linux processes; the Linux operating system knows nothing about them. They are merely constructs of the shell. Some important vocabulary about job control follow.
Read the rest of this entry »

Tags: ,

LCoTD: The Shell (Part 3: IO Redirection, Combining Commands, Quoting, and More!)

This one’s a real doozie. In today’s Linux Command of the Day, I’ll be covering Input/Output redirection, pipes, combining commands, quoting, escaping, command-line editing, command history, and filename completion. I know it sounds like a lot, but it’s all really quite simple, and not too much to take in! But that doesn’t mean it isn’t essential to know- in fact, quite the opposite! This information could save your life one day (ok, maybe I’m being a bit dramatic for 99.98% of my readers, but for that 0.02%, you’ll be glad you read this!)
Read the rest of this entry »

Tags: ,

LCoTD: The Shell (Part 2: Shell Variables, Search Path, and Aliases)

Today we’ll be covering shell variables, search path, and aliases.
Read the rest of this entry »

Tags: ,

LCoTD: The Shell (Part 1: Wildcards, Brace Expansion, and Tilde Expansion)

Today, I’ll be covering the Linux “Shell”. In addition, I’ll be touching on the commands, who and type but the focus of this article is learning how the shell works, and by extension, what you are actually doing when you enter commands.
Read the rest of this entry »

Tags: ,

LCoTD: The Filesystem (Part 3: Operating System Directories and File Protections)

In today’s installment, I will cover Operating System directories, and file protections. The ls and cat commands will be used, and you will be introduced to chown, chmod, and chgrp.
Read the rest of this entry »

Tags: ,

LCoTD: The Filesystem (Part 2: System Directories)

Yesterday I covered home directories and a few commands that relate to the filesystem (namely pwd, echo, and cd). Today I will cover those mysterious and cryptic system directories.
Read the rest of this entry »

Tags: ,

LCoTD: The Filesystem

Today’s LCoTD isn’t so much a single command as an introduction to the filesystem. Today, I’ll cover the cd command, the HOME variable, and the PWD and echo commands.
Read the rest of this entry »

Tags: ,