Article View: uk.comp.os.linux
Article #703Re: Yet another crash!
From: 007***
Date: Wed, 09 Feb 2000 00:00
Date: Wed, 09 Feb 2000 00:00
75 lines
3950 bytes
3950 bytes
In article <82bt5rzp5k.fsf@aptiva.littondale.freeserve.co.uk>, Richard Corfield <Richard@Littondale.freeserve.co.uk> wrote: >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. Thanks Richard ;o) -- Ian. http://www.overhere30.freeserve.co.uk
Technical Details
Message-ID:
<87str6$2ip$1@newsg4.svr.pol.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<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> <82bt5rzp5k.fsf@aptiva.littondale.freeserve.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d8ad,b33046ac4fb17395 X-Google-Attributes: gid10d8ad,public X-Google-Thread: 111053,9e82041a3ad6a90 X-Google-Attributes: gid111053,public From: ian@overhere30.freeserve.co.uk (007***) Subject: Re: Yet another crash! Date: 2000/02/09 Message-ID: <87str6$2ip$1@newsg4.svr.pol.co.uk> X-Deja-AN: 583887149 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> <82bt5rzp5k.fsf@aptiva.littondale.freeserve.co.uk> X-Complaints-To: abuse@theplanet.net X-Trace: newsg4.svr.pol.co.uk 950139558 2649 62.136.63.103 (9 Feb 2000 23:39:18 GMT) Organization: Mine NNTP-Posting-Date: 9 Feb 2000 23:39:18 GMT Newsgroups: uk.comp.os.linux,freeserve.help.unix