🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: uk.comp.os.linux
Article #730

Re: Yet another crash!

#730
From: Richard Corfield
Date: Tue, 08 Feb 2000 00:00
75 lines
4232 bytes
ian@overhere30.freeserve.co.uk (007***) writes:

> I'd try anything if I new how to get past localhost root# or what to type 
> whist at that prompt (black screen).

It looks like you've logged in as root and are staring at the command
line.  For starters its reccomended that you use a user other than
root to do routine things like work as that would prevent you from
accidently hosing your system. How to add a user depends on your
system. On my Debian system I'd type

 adduser richard

and answer the questions - then log off and log on again as richard.

Anyway - when logged in as a user there are all the normal command
line things you can do. A basic one for example is:

 ls

to get a listing of files in the current directory. If it gives nothing
try "ls -a". 

If your shell (the command prompt program) is not set up to tell you
what directory you're currently in you can get it with

 pwd

If you have the manuals installed you may find some of the following
useful. You can get at them with the man command.

 man ls
 man man
 man bash

If you have X-windows (the graphical bit) set up then the xman command
may provide hours of entertaining reading (erm...). See if the
"startx" command does anything useful.

You can change directory with the "cd" command. To get back where you
came from the "cd -" command goes back. UNIXs like Linux have user
home directories where all your documents go. To get back to your home
directory try "cd ~".  Other aliases work such as "cd ~/MyDocuments"
assuming you have a directory called MyDocuments in your home
directory. To look in someone else's directory (assuming they have
given you permission) try "cd ~user".

A nice feature of the way UNIX shells work is that its the shell not
the "cd" command thats translating ~ and * and whatever else. This
makes it far easier to write programs and makes things behave
consistantly for a user's favourite shell.  I can't say I've found the
same under Windows. Another really nice feature is tab completion. If
you're using bash under Linux (most likely) it should be set up. Try
starting to enter a filename and hitting the TAB key once or twice
part way through.

The shell is very powerful - the bash manual page should give a lot of
information. For a slightly less tame example I could delete all compiled
Java programs in my ~/Java directory with the following command (which is
one of many possible ways to do it)

rm -i $(find ~/Java -name '*.class')

The -i option on rm is interactive mode so it will ask before deleting.

Of course you can also use the shell to launch programs such as vi, emacs,
pine, strn and so forth.

 - Richard.

-- 
   _/_/_/  _/_/_/  _/_/_/ Richard Corfield <Richard@Littondale.freeserve.co.uk>
  _/  _/    _/    _/      Web Page, CV:   http://www.littondale.freeserve.co.uk
 _/_/      _/    _/       Dance (Ballroom, RnR), Hiking, SJA, Linux, ... [ENfP]
_/  _/  _/_/    _/_/_/    PGP2.6 Key ID:0x0FB084B1   GPG/PGP5 Key ID:0xFA139DA7
Technical Details
Message-ID: <82bt5rzp5k.fsf@aptiva.littondale.freeserve.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <RJYW3.61$ju1.1566@nnrp4.clara.net> <FL3x5A.E5B@dangl.demon.co.uk> <383728e4@news.jakinternet.co.uk> <81rsh3$khi$1@fantasma.gsyc.inf.uc3m.es> <826a4r$mr5$1@sparky.wolfe.net> <385B6A68.838DAC06@r56o.f9.co.uk> <86fu3t$f29$1@news8.svr.pol.co.uk> <86g5dk$c5f$1@nnrp1.deja.com> <86io9q$nsv$1@newsg1.svr.pol.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111053,9e82041a3ad6a90
X-Google-Attributes: gid111053,public
X-Google-Thread: 10d8ad,b33046ac4fb17395
X-Google-Attributes: gid10d8ad,public
From: Richard Corfield <Richard@Littondale.freeserve.co.uk>
Subject: Re: Yet another crash!
Date: 2000/02/08
Message-ID: <82bt5rzp5k.fsf@aptiva.littondale.freeserve.co.uk>
X-Deja-AN: 583392300
Sender: richard@aptiva.littondale.freeserve.co.uk
References: <RJYW3.61$ju1.1566@nnrp4.clara.net> <FL3x5A.E5B@dangl.demon.co.uk> <383728e4@news.jakinternet.co.uk> <81rsh3$khi$1@fantasma.gsyc.inf.uc3m.es> <826a4r$mr5$1@sparky.wolfe.net> <385B6A68.838DAC06@r56o.f9.co.uk> <86fu3t$f29$1@news8.svr.pol.co.uk> <86g5dk$c5f$1@nnrp1.deja.com> <86io9q$nsv$1@newsg1.svr.pol.co.uk>
X-Complaints-To: abuse@theplanet.net
X-Trace: news8.svr.pol.co.uk 950047375 23485 62.136.7.122 (8 Feb 2000 22:02:55 GMT)
X-Face: ;'Dsq*~sjE[N@`IIZlsK:_~m,=9qSv":{vd]E2/=~hI.?{J\4s2e.HuCY(tFk7grBRgG`rD D9YN#MKw$EidsapKH"Xl_`v.h~g>01A7B"i{WF`Uo`qd&}cd<fR@=s/qneeX]*6kT,yf4HxhP\`Z)e h2dOQI1p
Organization: None at all
NNTP-Posting-Date: 8 Feb 2000 22:02:55 GMT
Newsgroups: uk.comp.os.linux,freeserve.help.unix