Linux Terminal Commands

  • tetu
  • Newbie
  • Newbie
  • tetu
  • Posts: 13

Post 3+ Months Ago

People does anybody knows how to the command in linux that in ms dos is cd.. to go back to the main directory. And what is the best to install a package in tar.gz or else rpm ??


Cheers
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

cd / will take you back to the root dir.

cd ~ will take you back to your home dir.

cd .. will take you back one branch of the tree.

If you ask me, it's always better to install from source, which means grab the gzipped, tarball and uncompress to install.

Some people like rpms; like Microsoft. :)

binary install == bad
source install == good

Just my opinion.
  • Tom the Great
  • Expert
  • Expert
  • User avatar
  • Posts: 727
  • Loc: B.C., Canada

Post 3+ Months Ago

Daemonguy wrote:
cd ~ will take you back to your home dir.


Won't just typing cd work as well? I used to do that all the time on my old red hat 7.1 box, haven't tried it on my new slack 10 box, yet.



Anyways, compiling/installing from source is very simple, and it is usually only just tpying in a few commands in the terminal (commands you can find in a readme or on the site you downloaded from) and you don't have to worry about find some rpm that might work with your version and might not work.
  • cyner
  • Novice
  • Novice
  • cyner
  • Posts: 20
  • Loc: Stockholm, Sweden

Post 3+ Months Ago

Tom the Great wrote:
Won't just typing cd work as well?


Yes, it works fine.

One thing to note: in DOS you can type "cd.." as well as "cd .." -- in a Linux shell you must type "cd .."
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Yeah cd works fine by itself, but I am just old school -- I have to quantify everything. :)

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 35 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.