I'm a bit late to the party, but I have an extra couple of cents to throw in.
I'm pedantic when it comes to the terms Linux and Linux Distribution. Linux is the operating system. A Linux distribution, or Linux distro, in general, is comprised of programs that allow a user to meaningfully, or...
Also, depending on your shell (your example looks like a bourne-compatible shell) , the usage of single quotes, double quotes, and $() is different. Single quotes (not backticks) in Bash (maybe other shells) also allow you to print unicode too e.g. echo -e $'\xef\x85\xbc'.
Hopefully your...
First touched Linux (kernel ver: 1.2.something) in 1995 with an IBM PC350, Pentium 100(MHz), a massive 16MB of RAM, 1GB hard drive and with Slackware and Red Hat (not Red Hat Enterprise Linux / RHEL) CDROMs from the Linux Unleashed book released the same year. I dual booted Win95 (gotta play...
Hi,
You can redirect and append STDOUT to a file using this example:
exec 1>> /tmp/stuff.log
Notes:
In most cases, this example will also create a file if it doesn't already exist.
You do not need to specify 1>>, because 1>> is implied by just using >>.
I would suggest a couple of changes...