Find the answer to your Linux question:
Results 1 to 7 of 7
I m new to linux and i was wondering is there a command that opens files using the cli.... Thanks...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    3

    opening files from the CLI

    I m new to linux and i was wondering is there a command that opens files using the cli.... Thanks

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Yes, the cat command does so.
    Debian GNU/Linux -- You know you want it.

  3. #3
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    What do you mean by "open" a file?

    The "cat" command prints the entire file to the console. If the file is big and you want to be able to scroll through it, the "less" command will allow you to do it. If you want to actually modify the file, there are several text editors that you can use with assorted learning curves. vi and Emacs are the most powerful, but the learning curve is very steep. You could also try nano, which is a bit more like a conventional editor.
    DISTRO=Arch
    Registered Linux User #388732

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,093
    You can find a listing of various Linux commands here:

    Linux Command Directory - O'Reilly Media

    Click on the command link, or run man command_name in your terminal for more information about the using the command.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  5. #5
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    522
    There is a debian manual that has got me started with the shell.

    It seems the site is off-line, so I can't check for the pages existence. I will give it as soon as I notice I can reach the manual again (and remember this thread).

  6. #6
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    Quote Originally Posted by Bemk View Post
    There is a debian manual that has got me started with the shell.

    It seems the site is off-line, so I can't check for the pages existence. I will give it as soon as I notice I can reach the manual again (and remember this thread).
    Do you mean this one? This is the Beginners' Guide to Debian started by Oswald Kelso; the CLI sections were contributed by yours truly.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  7. #7
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    522
    Quote Originally Posted by hazel View Post
    Do you mean this one? This is the Beginners' Guide to Debian started by Oswald Kelso; the CLI sections were contributed by yours truly.
    Nope, sorry, I meant Debian Tutorial (Obsolete Documentation)
    though they have added a new bit to it's title (obsolete documentation).

    This doesn't mean a lot is still usable.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...