Get the Most Out of the Default Shell•Section 2. Useful tcsh Shell Configuration File Options•Section 3. Create Shell Bindings•Section 4. Use Terminal and X Bindings•Section 5. Use the Mouse at a Terminal•Section 6. Get Your Daily Dose of Trivia•Section 7. Lock the Screen•Section 8. Create a Trash Directory•Section 9. Customize User Configurations•Section 10. Maintain Your Environment on Multiple Systems•Section 11. Use an Interactive Shell•Section 12. Use Multiple Screens on One Terminal< Day Day Up >
< Day Day Up > Hack 0 IntroductionUsers of open source () Unix operating systemsare an interesting breed. They like to poke under the surface of things,to find out how things work, and to figure out new and interesting waysof accomplishing common computing tasks. In short, they like to "hack."While this book concentrates on the BSDs, many of the hacks apply toany open source operating system. Each hack is simply ademonstration of how to examine a common problem from a slightlydifferent angle. Feel free to use any of these hacks as a springboard toyour own customized solution. If your particular operating systemdoesn't contain the tool used in the solution, use a tool that does exist,or invent your own!This chapter provides many tools for getting the most out of yourworking environment. You'll learn how to make friends with your shelland how to perform your most common tasks with just a fewkeystrokes or mouse clicks. You'll also uncover tricks that can helpprevent command-line disasters. And, above all, you'll discover thathacking BSD is fun. So, pull your chair up to your operating system ofchoice and let's start hacking.< Day Day Up > < Day Day Up >
Hack 1 Get the Most Out of the DefaultShellBecome a speed daemon at the command line.For better or for worse, you spend a lot of time at the command line. Ifyou're used to administering a Linux system, you may be dismayed tolearn that bash is not the default shell on a BSD system, for either thesuperuser or regular user accounts.Take heart; the FreeBSD superuser's default tcsh shell is also brimmingwith shortcuts and little tricks designed to let you breeze through eventhe most tedious of tasks. Spend a few moments learning these tricksand you'll feel right at home. If you're new to the command line orconsider yourself a terrible typist, read on. Unix might be a whole loteasier than you think.NetBSD and OpenBSD also ship with the C shellas their default shell. However, it is not always thesame tcsh, but often its simpler variant, csh, whichdoesn't support all of the tricks provided in thishack.However, both NetBSD and OpenBSD providea tcsh package in their respective packagecollections.