LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   "HELP" .bash_aliases on fedora linux (https://www.linuxquestions.org/questions/fedora-35/help-bash_aliases-on-fedora-linux-4175730588/)

Linuxwolf 11-04-2023 11:04 PM

"HELP" .bash_aliases on fedora linux
 
I saved this into .bash_aliases file.

alias getdates='date | tee /home/name/fulldate.txt | cut -d " " -f 1 | tee /home/name/shortdate.txt | xargs echo hello'

Then try to run getdates in the terminal. However, I get a response of bash: getdates: command not found...

Can anyone let me know what I did wrong

uteck 11-04-2023 11:13 PM

You need to tell bash to reload the file.
Code:

source ~/.bash_profile

michaelk 11-05-2023 01:48 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

https://www.linuxquestions.org/quest...ux-4175730587/


All times are GMT -5. The time now is 01:07 AM.