Portál AbcLinuxu, 10. května 2025 11:33
Řešení dotazu:
alias skript="/cesta/ke/skriptu"To samozřejmně předpokládá, že skript je spustitelný:
chmod +x /cesta/ke/skriptuA také, že má správný hashbang v hlavičce:
#!/usr/bin/python
[petr@nt ~]$ cat .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin $HOME/bin/signatura export PATH unset USERNAME export EDITOR=gvim
~/bin/
/usr/local/bin/
/root/bin/
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.