Re: Shell commands like to OS/2 shell (or MS PowerShell)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

drago01 wrote:
>> I also against making it global by default. But this can be done
>> in separate folder, not to standard /usr/bin, and then added for
>> users who want it just add it into PATH.
Yep, of course. This idea unobtrusive and don't hard for realization,
but much harder for standartization between people (and distros) :)
>> I not sure what I want it, but sometimes really hard understand
>> by name what do command and from which area it is.
> That is what man command is for ...
Sometime I know what I want, but I don't know is standart utility
present for this.
For example, I need for grep'ing some user from users list on my host.
How do it with 'man' utility? How I should guess about 'getent
passwd'? and what records more readable:

test $(getent passwd| grep -c '^someuser:') -eq 0 && useradd someuser
or
test $(system.user.list| grep -c '^someuser:') -eq 0 &&
system.user.add someuser


getent group | grep '^somegroup:'
or
system.group.list | grep '^someuser:'

For guru's of course much readable first variant :)


Or in additional we may have aliases for:

editor.txt => <your preferred editor>

editor.txt.sed => /usr/bin/sed
editor.txt.vim => /usr/bin/vim
editor.txt.joe => ...
editor.txt.gedit
editor.txt.kwrite
editor.img.gimp
editor.sound.guitar-newbie
etc

what happens after edit<tab>? You'll see 'editor'. Type 't' and press
<tab>. Press <enter> key for start preferred editor or just press
<tab> key again and you'll see editors (and only editors). Of course,
some utilities may present in few categories... And of course, my
names of programs just for example.


- --
WBR, Slavaz.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFLzat7b3oGR6aVLpoRAvtbAJ0dMLqtmIk0RujlCRYirDldui5s8wCggl5m
+FxH9JZo7L03ByFaEkWknGc=
=+Bfp
-----END PGP SIGNATURE-----

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux