background preloader

LinuxCommand.org: Learn the Linux command line. Write shell scri

LinuxCommand.org: Learn the Linux command line. Write shell scri

http://www.linuxcommand.org/

Linux Mint 9 (Isadora) Review Whenever a new version of Ubuntu is released, a new version of Linux Mint soon follows. This time around it’s Linux Mint 9. Linux Mint 9 is based on Ubuntu 10.04. I gave Ubuntu 10.04 a big thumbs up in my review, and I’ve been eagerly anticipating the release of Linux Mint 9. So how does Linux Mint 9 stack up? Is it still “a better Ubuntu” than Ubuntu itself? DSL information Shell Programming! A working knowledge of shell scripting is essential to anyone wishing to become reasonably proficient at system administration, even if they do not anticipate ever having to actually write a script. Consider that as a Linux machine boots up, it executes the shell scripts in /etc/rc.d to restore the system configuration and set up services. A detailed understanding of these startup scripts is important for analyzing the behavior of a system, and possibly modifying it. The craft of scripting is not hard to master, since scripts can be built in bite-sized sections and there is only a fairly small set of shell-specific operators and options to learn. The syntax is simple -- even austere -- similar to that of invoking and chaining together utilities at the command line, and there are only a few "rules" governing their use.

How Linux works: the ultimate guide Ever wanted to learn how the internals of your Linux desktop work? Yes, we've already published detailed "how it works" articles about things like sound, the kernel, LVM, PAM and filesystems, but in this article we're going to take a wider view and explain how everything in a modern Linux distro works, start to finish. We've opted for a top-down view, tackling each stratum of Linux technology from the desktop to the kernel as it appears to the average user. This way, you can descend from your desktop comfort zone into the underworld of Linux archaeology, where we'll find plenty of relics from the bygone era of multi-user systems, dumb terminals, remote connections and geeks gone by. Shell Scripting Primer: Shell Script Basics Writing a shell script is like riding a bike. You fall off and scrape your knees a lot at first. With a bit more experience, you become comfortable riding them around town, but also quickly discover why most people drive cars for longer trips. Shell scripting is generally considered to be a glue language, ideal for creating small pieces of code that connect other tools together.

Bash wait command wait command stop script execution until all jobs running in background have terminated, or until the job number or process id specified as an option terminates.It returns the exit status of waited-for command. wait can take the job-id or the process number. i.e. wait%1 or wait $PID Color Bash Prompt There are a variety of possibilities for Bash's prompt (PS1), and customizing it can help you be more productive at the command line. You can add additional information to your prompt, or you can simply add color to it to make the prompt stand out. Applying changes To apply changes from this article to your .bashrc (without ending subshells), do: $ source ~/.bashrc Basic prompts

Unix / Linux Bourne / Bash Shell Scripting Tutorial [ steve-parker.org ] Certain characters are significant to the shell; we have seen, for example, that the use of double quotes (") characters affect how spaces and TAB characters are treated, for example: $ echo Hello WorldHello World $ echo "Hello World"Hello World So how do we display: Hello "World" ? $ echo "Hello "World""

Related: