background preloader

Linux Unix Stuff

Facebook Twitter

Unix Commands. Shell-commands.gif (1500×2000) UNIX tips: Learn 10 good UNIX usage habits. Break bad UNIX usage patterns Michael StutzPublished on December 12, 2006 When you use a system often, you tend to fall into set usage patterns. Sometimes, you do not start the habit of doing things in the best possible way. Sometimes, you even pick up bad practices that lead to clutter and clumsiness. Adopt 10 good habits Ten good habits to adopt are: Make directory trees in a single swipe Listing 1 illustrates one of the most common bad UNIX habits around: defining directory trees one at a time.

Listing 1. It is so much quicker to use the -p option to mkdir and make all parent directories along with their children in a single command. Listing 2. You can use this option to make entire complex directory trees, which are great to use inside scripts; not just simple hierarchies. Listing 3. In the past, the only excuse to define directories individually was that your mkdir implementation did not support this option, but this is no longer true on most systems.

Listing 4. Listing 5. Listing 6. Welcome to Linux From Scratch! Learn Linux, 101: Hard disk layout. Overview In this article, learn to design a disk partitioning layout for a Linux system. Learn to: Allocate filesystems and swap space to separate partitions or disksTailor the design to the intended use of the systemEnsure the system can be bootedUnderstand the basic features of Logical Volume Manager (LVM) This article helps you prepare for Objective 102.1 in Topic 102 of the Linux Professional Institute's Junior Level Administration (LPIC-1) exam 101.

The objective has a weight of 2. Note: This article deals mostly with planning the layout. For the implementation steps, see the articles for Topic 104 (described in our series roadmap). Note: This article includes material for the LPI Exam 101: Objective Changes as of July 2, 2012. Prerequisites To get the most from the articles in this series, you should have a basic knowledge of Linux and a working Linux system on which you can practice the commands covered in this article. Back to top Filesystem overview Table 1.

Partitions Listing 1. Linux Shell Scripting Tutorial - A Beginner's handbook.