Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

Book to learn Linux terminal

Question posted by: ambrnewlearner (Needs Regular Fix) on June 19th, 2008 08:56 AM
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
============
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
nepomuk's Avatar
nepomuk
Expert
1,031 Posts
June 19th, 2008
01:08 PM
#2

Re: Book to learn Linux terminal
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

Reply
mac11's Avatar
mac11
Familiar Sight
141 Posts
June 19th, 2008
06:28 PM
#3

Re: Book to learn Linux terminal
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.

Reply
ambrnewlearner's Avatar
ambrnewlearner
Needs Regular Fix
343 Posts
June 24th, 2008
10:37 AM
#4

Re: Book to learn Linux terminal
THANKS nepomuk and mac11.............

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

Reply
Reply
Not the answer you were looking for? Post your question . . .
180,788 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Top Linux / Unix / BSD Forum Contributors