Linux in a nut ShellPublished: 1/12/2009Why Bother with living in a Shell? Why do you need to learn the command line anyway? Well, let me tell you a story. Not long ago we had a problem where I work. There was a shared drive on one of our file servers that kept getting full. I won't mention that this legacy operating system did not support user quotas, that's another story. But the server kept getting full and stopping people from working. One of the software engineers in our company spent the day writing a C++ program that would look through the directories of all the users and add up the space they were using and make a listing of the results. Since I am forced to use the legacy OS while I am on the job, I installed a version of the bash shell that works on it. When I heard about the problem, I realized I could do all the work this engineer had done with this single line: du -s * | sort -nr > $HOME/space_report.txt Graphical user interfaces (GUIs) are helpful for many tasks, but they are not good for all tasks. I have often felt that most computers today do not use electricity anymore. They are powered by the "pumping" motion of the mouse! Computers were supposed to free us from manual labor but how many times have you performed some task you felt sure the computer should be able to do but you ended up doing the work by tediously working the mouse. Pointing and clicking, pointing and clicking. I once heard an author remark that when you are a child you use a computer by looking at the pictures. When you grow up, you learn to read and write. Welcome to Computer Literacy 101. Now let's get to work. Related PostsLinux File Structure Part 2Last Updated: 1/12/2009When you wish to use the CDROM drive it must first have a cdrom in the drive and data on the cdrom. To view the data you must mount the device to a given place of the Linux filing tree. Everything in Linux is a file. The whole partition of a hard dr Read more... Linux File StructureLast Updated: 1/12/2009Understanding the basic idea behind the Linux file structure can help but only if other people follow this idea! Read more... Pipe and RedirectionLast Updated: 1/12/2009The command line is not only a tool for bashing out program names but an elegant and intelligent environment. Some programming languages can be typed directly into the command line. Also tasks that take some time to execute in the background leaving Read more... Mounting a DriveLast Updated: 1/12/2009In Linux, like in UNIX, diskettes and CD-ROMs need to be mounted before they can be used. What mount does is to associate the devices (floppy or CD-ROM drives) to a mount point (a directory) in the root file system. The usual mount point for diskette Read more... |