Добавить новость
ru24.net
News in English
Ноябрь
2023

Using the Linux compgen bash builtin

0

Linux’s compgen command is not actually a Linux command. In other words, it’s not implemented as an executable file, but is instead a bash builtin. That means that it’s part of the bash executable. So, if you were to type “which compgen”, your shell would run through all of the locations included in your $PATH variable, but it just wouldn’t find it.

$ which compgen
/usr/bin/which: no compgen in (.:/home/shs/.local/bin:/home/shs/bin:/usr/local/bin:
/usr/bin:/usr/local/sbin:/usr/sbin)

Obviously, the which command had no luck in finding it.

If, on the other hand, you type “man compgen”, you’ll end up looking at the man page for the bash shell. From that man page, you can scroll down to this explanation if you’re patient enough to look for it.

To read this article in full, please click here




Moscow.media
Частные объявления сегодня





Rss.plus




Спорт в России и мире

Новости спорта


Новости тенниса
WTA

Мирра Андреева поднялась на четвертую позицию в гонке за чемпионство WTA.






Путин осудил санкции: ущерб мировой экономике и их инициаторам

Трамп: я встречусь с Путиным, мы прорабатываем все детали

Добровинский сообщил, что Алсу ждет сюрприз

Путин: Реакция Европы на контакты РФ и США эмоциональна и бесполезна