Book to learn Linux terminal

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AmberJain
    Recognized Expert Contributor
    • Jan 2008
    • 922

    Book to learn Linux terminal

    HELLO,

    I have some queries. Please help.

    Let me tell you experts that I'm a linux newbie and an ABSOLUTE UNIX illiterate person.

    I know a bit of linux and can easily handle GUI of Red hat Linux 9 which is installed on my system. But when it comes to Linux terminal, I know not much about it.

    Q1. Which one is easy to learn-linux or unix terminal commands?

    Q2. Which book should I prefer according to you to learn terminal commands?

    THANKS......... ...

    ============
    AmbrNewlearner
    ============
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Some easy to learn terminal commands are:
    • cd (change directory)
      relative directories: cd my/Relative/Directory
      absolute directories: cd /my/Absolute/Directory
      one step up: cd ..
      stay in the same place: cd .
    • ls (list files)
      list all files: ls
      list files starting with an 'a': ls a*
      list files ending with '~': ls *~
    • cp (copy files)
      copy a file to somewhere: cp file /destination/of/that/file
      copy a directory to somewhere: cp -r dir/ /destination/of/that/dir/
    • mv (move or rename files)
      move a file: mv file /destination/of/that/file/
      rename a file: mv file newFileName
    • rm (delete a file)
      delete a single file: rm file
      delete a single directory with contents: rm -r directory
      delete all files in the current directory that start with 'a': rm a*
    • man (open the MANual of a given program)
      for example: man ls
    • mkdir (make a directory)
      relative: mkdir newDirectory
      absolute: mkdir /position/of/new/Directory/newDirectory
    More commands can be found on this PDF.

    If you want to get into bash programming, first place to look would be the bash manpage, second would be Google. Of course you can buy books, but especially for Linux, I've never found it necessary. The net is so much more universal and it's cheaper too :-D

    Greetings,
    Nepomuk

    Comment

    • mac11
      Contributor
      • Apr 2007
      • 256

      #3
      I agree with Nepomuk's last paragraph. When I want to do something but I don't know how, the first thing I do is ask google. Then maybe some manpages once google has helped me figure out which direction to start heading towards my goal.

      Another tip: always assume linux can do anything you want, you just don't know how to make it go yet.

      Comment

      • AmberJain
        Recognized Expert Contributor
        • Jan 2008
        • 922

        #4
        THANKS nepomuk and mac11.......... ...

        ============
        AmbrNewlearner
        ============

        Comment

        Working...