sudo and su –

Hacker Girl

This is post 9 of 11 in the series “The Linux Command Line” Both sudo and su are highly dangerous. The sudo command is used to run a following command as the super-user. Think “super-user do.” It lets regular users do rootly thing, like: sudo cat /etc/shadow You’ll be prompted for a password: Your Password. …

Linux User Default Files

Hacker Girl

This is post 7 of 11 in the series “The Linux Command Line” When a new user is created, the default files and directories that are created are stored in /etc/skel. This directory can be modified to fit your needs. Modifications will only affect new users; they do not change anything for existing users.

Flow Control

Tux

This is post 12 of 19 in the series “[ Shell Scripting ]” The Bourne/bash shell supports a variety of conditionals, loops and other flow control operations. You’ll use these often. if The if statement is a simple conditional. Its syntax is: if condition ; then commands [elif condition ; then commands]… [else commands] fi …

Pipes

Glenn Norman

This is post 10 of 19 in the series “[ Shell Scripting ]” Any number of commands can be pipelined together. command1 | command2 The above command creates a pipe: the standard output of command1 is connected to the standard input of command2. Any command that can accept Standard Input and produce Standard Output is …