Question:

Can anyone supply me with sample Unix/Linux commands and their results?

by  |  earlier

0 LIKES UnLike

Can anyone supply me with sample Unix/Linux commands and their results?

 Tags:

   Report

3 ANSWERS


  1. Hi

    There are literally hundreds of commands and derivatives in Unix/Linux

    I can recommend: "A Practical Guide to LINUX Command, Editors and Shell Programming" by Mark G. Sobell Pub. by Prentice Hall.

    In the mean time a couple more in addition to above:

    mkdir <new/dir/name> will make a new directory

    cd <new/dir> will change to a new directory

    chmod +x <filename> will make a file executable.

    ls will list the contents of  the current directory.

    cat will display the contents of a text file.

    Hope this helps. Good Luck

    G


  2. rm *  -- Destroys all your data.  done with root access at the top level trashes your whole installation.

    tar -cvjpf <filename> creates bzipped archive file <filename>.tar.bz2 with all the same permissions as file or directory filename.

    tar -xvzpf <filename>.tar.gz creates file or directory <filename> using the contents of <filename>tar.gz

    man <command>  Gives you information about many UNIX commands.  Open a shell window and use it for most of these.

    info <command> gives you more information about fewer commands.  Unlike man you can browse what it tells you about by typing info

    apropos <command> the functional equivalent of typing man -k <command>.  Tells you what man pages specific commands appear on.

    grep searches for a specified string in a stream (file or string) submitted to it.  Thus on my system:

    jplatt@Hugo2 ~ $ dmesg | grep intel

    yields

    intel_rng: FWH not detected

    intel8x0_measure_ac97_clock: measured 59477 usecs

    intel8x0: clocking to 48000

    ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>

    I don't feel like explaining dmesg.  Type "man dmesg".

    Anyhow, those are commands.

  3. If you simply want command equivalents for different versions of unix then consult the rosetta stone

    http://bhami.com/rosetta.html

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.