Hi All,
I am using Open Suse 10.2 and I am loosing some commands i.e. they are getting deleted . I don’t know how ???
Can we add some selected commands to the installed commands set by downloading from the ftp site. If yes how & what is the procedure & what care should be taken.
Losing commands? Or do you mean they weren’t there when you installed?
A lot of command-line standards are in the Command Line Tools package pattern in Yast2. It isn’t installed by default (and probably isn’t included on the LiveCD image). I always install those right away.
kadamsagar123 schrieb:
> I am using Open Suse 10.2 and I am loosing some commands i.e. they are
> getting deleted . I don’t know how ???
> Can we add some selected commands to the installed commands set by
> downloading from the ftp site. If yes how & what is the procedure & what
> care should be taken.
If you are talking about shell commands, these are composed of:
a) built-in commands
– compiled into the shell, unlikely to disappear
b) aliases and shell functions
– usually defined in the various startup scripts that get run
when you start a shell, and before you get a chance to enter a
command yourself; openSuSE has created quite a tangle there and
it’s entirely possible that something is getting lost by any
change to the system
c) executable files (binaries and scripts) in the directories listed
in the shell variable $PATH
– these might get lost either by being deleted or moved from
the directory in question, or by the directory in question
itself somehow vanishing from the path
So to diagnose that further you have first to identify a command
that has been lost, find out to which of the three categories above
it belongs, in which startup script (case b) or directory (case c)
it was defined or installed, and where it originally came from.
(RPM? Manual installation?) Then you can analyze how it disappeared
and how to get it back.
I wonder if he means not being able to use commands reserved for root usage, such as ifconfig etc. They just don’t show up for a regular user unless they use sudo or su into root - then one can see and use those.
I think you might run into this especially if you have set yourself up at install for seperate root and user accounts with differing passwords.
Could that be the case Sagar? Do the missing commands show up if you preface them with sudo, or change into your root account completely with su ?
stream303 schrieb:
> I wonder if he means not being able to use commands reserved for root
> usage, such as -ifconfig- etc. They just don’t show up for a regular
> user unless they use sudo or su into root - then one can see and use
> those.
The reason these don’t show up for regular users is simply that they
are installed in directories /sbin and /usr/sbin which are not in
normal users’ search paths. Expand the path by the shell command
export PATH=/sbin:/usr/sbin:$PATH
and they’ll show up. Alternatively, you can run them by explicitly
giving the location, eg. run ifconfig as /sbin/ifconfig. Their use
will of course still be limited to what a regular user may do.
> I think you might run into this especially if you have set yourself up
> at install for seperate root and user accounts with differing
> passwords.
No, that won’t make any difference.
> Could that be the case Sagar? Do the missing commands show up if you
> preface them with sudo, or change into your root account completely with
> su ?
Or, for a start, tell us at least one actual command that has been
“lost”. It’s quite frustrating to speculate in the dark.
I am working with Open Suse 10.2.
I have a problem with the set of commands available with me.By pressing TAB key twice we can know the nos of commands available right !!
2 days back it showed me 5545 and today it is showing me 5525.
Few days back I tried with “Hier” command which shows the hierarchy of file structure. BUt today it is not present.This confirmed my doubt that they are getting vanished.Can any one please tell me what is happening.
Thankyou,
For the start “hier” command which was tested once but latter on didn’t work.Also for refernce I am giving below my first post
" I am working with Open Suse 10.2.
I have a problem with the set of commands available with me.By pressing TAB key twice we can know the nos of commands available right !!
2 days back it showed me 5545 and today it is showing me 5525.
Few days back I tried with “Hier” command which shows the hierarchy of file structure. BUt today it is not present.This confirmed my doubt that they are getting vanished.Can any one please tell me what is happening. "
Thankyou,
hope so this will help out.
if not can you tell me from where to install new commands.
Sorry for the long delay in answering. Have been busy otherwise.
kadamsagar123 schrieb:
> For the start “hier” command which was tested once but latter on didn’t
> work.
Hmm. I have never heard of that command, and none of the SuSEn I
tried has it. So I’m sorry but I do not know where that command
might have been or to which package it might belong, and
consequently have no idea how it could have vanished.
> if not can you tell me from where to install new commands.
There are many possible sources. You can use YaST, rpm,
compile and install from source, write your own in a script
language, create them as shell functions and add them to
your profile, define aliases … It all depends on what
you want to achieve.