Slashdot Mirror


Unix Command 'Cheat Sheets'?

WCLPeter asks: "One of the things that I like about Linux is that once it's set up properly it tends to stay that way. I have had experience using Linux as I've set up a firewall for my xDSL line, but that was a while ago. Like all things, if you don't use it often, you forget how to use it. Which is what has happened to me. As I prepare to install a Slackware 8.0 ISO so I can play some Loki games I bought I wondered: Is there a Unix cheat-sheet?" If you were going to create such a cheatsheat, what commands would you have in it? Of course, you can't get all of the Unix commands on a single sheet of paper, but probably enough of them to at least get a new user confortable with navigation and file operations.

"I'm sure you all know the type. When you buy a book on a program/OS/Programming Language, it usually contains a page that lists all the functions or commands followed by a simple 1-2 line description of that command.

Something along the lines of:
ls: Used to display a directory listing.
gcc: GNU C Compiler. Used to compile 'C' files into program code.
etc... - The list continues in this fashion.

I know I could read the various FAQ's. Most FAQ's unfortunately follow the 'FAQ A leads to FAQ B which leads to FAQ C which leads back to FAQ A' format. It would be so much easier for newer users to graze down a list of 50-100+ commands, find one that -looks- sort of like what I want to do and type
'man <command>' for usage information."

4 of 77 comments (clear)

  1. 'apropos' by penguinboy · · Score: 5, Informative

    'apropos' is a rather useful little command-line utility that, when given a topic as an argument, will print a list of man pages that may be related to that topic. Quite helpful when you don't know which man page it is you need..

  2. Cheat Sheets by dso · · Score: 5, Informative

    I have developed a couple of "cheat sheets" for the Canadian Linux Users Group. The following sheets available include:

    Linux Command Card
    Slackware System Reference
    File System Hierarchy
    Samba Configuration

    I have a couple for SQL Databases but they are not on the site yet. All these sheets are in PDF format so new users who use Windows can get the commands prior to installing Linux. Also, experienced Linux users will know how to read a PDF.

    They are available at:

    http://www.hexeon.com/clue/library/

  3. Another failed chance to put search engines to use by Toodles · · Score: 5, Informative
    First, a serious plug for refcards.com as they have a bunch of DAMN handy refference cards, including apache, perl, cvs, gdb, ANSI c, etc etc. However, they do not have one for basic *nix usage. So...

    Here are some of the more promising results of a search from google.com (String used was :unix ref card pdf)

    Unix Cheat Sheet
    Unix Cheat Sheet
    From Rice University : Very basic
    Another Too large and outdated
    Selection of Unix, Vi, and Emacs refferences Courtesy Univ. of Alberta.ca

    You should be able to find what you need easy enough. I should also highly reccommend to everyone the linuxsecurity.com Linux Security guidesheet. Damn good reading to hardening your system. Here

    Toodles

    --
    Toodles D. Clown
  4. More useful: a list of one-liners by Tassach · · Score: 4, Informative

    What's even better than a simple cheat sheet of the basic commands is a list of useful one-liners: little 2 or 3 command scripts using odd switches that do somthing useful. Learning the basic unix commands is pretty trivial next to learning how to string them together to do neat things. EG:

    ls -at | head -n1 : list the most recently modified file in the current directory

    ps h -u user | awk '{print $1}' | xargs kill -9 : terminate all jobs owned by user.

    --
    Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?