Bash script doesn't execute when using sh

I set my bash script called pass.sh globally by adding its source path into $PATH in my ./bashrc. The problem is I can't execute using the sh only using the bash command when I'm in a different dir...

Ask Ubuntu
.bashrc / .zshrc を使って開発コマンドを短縮する方法 - Qiita

こんにちは。 ソーイ株式会社、入社1年目の村上です。 Laravel開発中、docker関係のコマンドやバッチコマンドの入力が煩わしく感じました。 READMEやドキュメント、該当のバッチファイルを確認し、書いてあるものをコピペすれば済む話ですが、それらを毎回入力することさ...

Qiita

Befehle lokalisieren: PATH-Varibale und Pfadsuche

Warum du PATH und Suche verstehen musst Die Shell findet Befehle über deine PATH-Variable, eine Liste von Verzeichnissen, die sequentiell durchsucht werden – siehe mit echo $PATH, z. B. /usr/local/bin:/usr/bin:/bin:/usr/sbin:/home/deinuser/bin. In dem oberen Beispiel sind es 5 Pfade in denen die Shell nach den Befehlen sucht. Sie durchsucht die Pfade von Links nach rechte. Wenn also mehrere Programme mit dem selben Namen vorhanden sind wird von links nach rechts das erste Programm […]

https://andreas-moor.de/befehle-lokalisieren-path-varibale-und-pfadsuche/

Bash Configuration Gist

*Bash Configuration* ---------------------------------------------------------------------- I updated my bash configuration gist today. As it has been a wh...

Ускоряем навигацию в 5 раз: CD-меню для частых папок

Привет, Хабр! Сколько раз за день Вы вводите cd ~/projects/current-project/src/components/very-long-folder-name , чтобы просто перейти в нужную директорию? Такая навигация в терминале отнимает кучу времени и сил, теряется фокус. В данной статье хочу поделиться простым bash-скриптом, который покажет Вам пронумерованный список избранных папок и позволит переходить в них одной цифрой.

https://habr.com/ru/articles/958676/

#Linux #bashrc #bash #bashскрипт #оптимизация #cd

Ускоряем навигацию в 5 раз: CD-меню для частых папок

Привет, Хабр! Сколько раз за день Вы вводите cd ~/projects/current-project/src/components/very-long-folder-name , чтобы просто перейти в нужную директорию? Такая навигация в терминале отнимает кучу...

Хабр

I'm trying to create an #alias in the #bashrc for the command-line tool #pwgen. I want to exclude certain characters using the "-cnys -r" switch. Because this also affects characters that cause the command to abort (such as " and '), I only get an error message. I'm familiar with exclusion markers, but the usual suspects, "\" or "/," are also part of the excluded string. I can't find a suitable solution online. Surely someone here has the necessary knowledge, right?

#Arch #Linux #ArchLinux #bash #cli #Console #Terminal

Für das Kommandozeilen Werkzeug #pwgen versuche ich einen #alias in der #bashrc anzulegen. Mit dem Schalter "-cnys -r" sollen bestimmte Zeichen ausgeschlossen werden. Weil es auch Zeichen betrifft, die zum Abbruch des Befehls führen (wie z.B. " und '), bekomme ich nur eine Fehlermeldung angezeigt. Exclusion Marker sind mir ein Begriff, aber die üblichen Verdächtigen hierfür "\" oder "/", sind ja ebenfalls Teil der auszuschließenden Zeichenkette. Im Web finde ich keine passende Lösung. Hier hat doch bestimmt jemand das nötige Wissen, oder?

#Arch #Linux #ArchLinux #bash #cli #Konsole #Terminal

#bash_scripting #bash #terminal #bashrc
x
Quick question, how do I enable persistent command history in an apple terminal shell? (up arrow remembers all previous commands even from previous sessions)
@nickbearded you know you gotta love hashcat for all the protocols it works on. I got second r proxy online https://debianws.lexgopc.com/
it has some stuff, i am spidering it with the other r proxy box (yacy.lexgopc.com) so all the info will be indexed and searchable. I have to make a couple static sites and then jump back to dynamic basic wp/drupal but also rag pipelines/pydantic, have been v busy with work and ongoing health issues, still getting there bit by bit. i am also going to try and pivot more to studying for cert - I am bad at time management but if i can pivot for a month or something and pass cert likely worth it. if i have wherewithal to get it done is another matter - hopefully. the dynamic portals have a future, I will get more balanced.
i approve of testing on various platforms #devops #bashrc #bashcoreX #federated platforms #random oracles #blackbox zimbra
@gary_alderson Absolutely, I agree 100%. Seeing things in action makes all the difference. I’m curious to hear what people notice or suggest once it’s out. Some hooks are subtle, others more obvious, and feedback, good or bad, always helps sharpen the vision.
Action precedes understanding, indeed. 🔁💡
#bashcore #bashrc #buildinpublic