📄 00000015.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人: <A HREF="mailto:ajahn@spd.dsccc.com">ajahn@spd.dsccc.com</A> (Alfredo Jahn), 看板: LX.misc <BR>标 题: Re: Can't use 'ls' command <BR>发信站: DSC Communications Corporation, Plano, Texa (Fri Jul 25 06:27:05 1997) <BR>转信站: sobee!netnews.ntu!news.mcu!news.cs.nthu!UUserv.Net.tw!aidebbs!news.yzi <BR> <BR>JHB NIJHOF (<A HREF="mailto:nijhojhb@aston.ac.uk)">nijhojhb@aston.ac.uk)</A> wrote: <BR>∶<I> Irene ah! (irene-<A HREF="mailto:ah@geocities.com)">ah@geocities.com)</A> wrote: </I><BR>∶<I> : I installed Red Hat Linux release 4.0 </I><BR>∶<I> : Kernel 2.0.18 on an i386 </I><BR>∶<I> : </I><BR>∶<I> : why i using 'ls' with an error as: </I><BR>∶<I> : </I><BR>∶<I> : /bin/ls: unrecognized option '--8bit' </I><BR>∶<I> : Try '/bin/ls --help' for more information. </I><BR>∶<I> : </I><BR>∶<I> : use other command is ok, </I><BR>∶<I> : i try cd to /bin then use 'ls' also with same problem </I><BR>∶<I> : but use '/bin/ls' is ok. </I><BR>∶<I> : </I><BR>∶<I> : pls help me, TKS!!! </I><BR> <BR>∶<I> You have got 'ls' aliased to '/bin/ls --8bit', </I><BR>∶<I> in your personal or (probably) global shell initialisation script. </I><BR>∶<I> By typing 'alias ls' you can find out what it is aliased to exactly; </I><BR>∶<I> look for that string in one of: </I><BR>∶<I> /etc/profile ; ~/.profile ; ~/.bashrc (for bash); </I><BR>∶<I> ~/.login ; ~/.cshrc (for csh). </I><BR>∶<I> Removing the 'alias ls' line from the script in question </I><BR>∶<I> should do the trick, but only after you log in again (to get rid of </I><BR>∶<I> it in this shell, type 'unalias ls' ; that works for bash, at least). </I><BR> <BR>A good trick to know is using the "\" in front of a command will <BR>over-ride an alias. For example, I alias "rm" to "rm -i" so that <BR>it queries me when I delete something. Sometimes I know what I want <BR>and I don't want to be queried for every file, especially when I <BR>want to do an "rm *" in a directory which contains lots of files. <BR>So, what you can do is: "\rm *" and it skips any alias you might <BR>have set up. So, to solve your "ls" problem (which I'm sure you've <BR>already resolved...) use the following command: <BR> <BR> \ls <BR> <BR>∶<I> Jeroen Nijhof </I><BR> <BR>-- <BR>Alfredo Jahn <BR><A HREF="mailto:ajahn@spd.dsccc.com">ajahn@spd.dsccc.com</A> <BR><A HREF="http://www.wn.com/per/alfredo/">http://www.wn.com/per/alfredo/</A> <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -