LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Closed Thread
  Search this Thread
Old 11-04-2023, 11:04 PM   #1
Linuxwolf
LQ Newbie
 
Registered: Nov 2023
Posts: 3

Rep: Reputation: 0
"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
 
Old 11-04-2023, 11:13 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,173

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
You need to tell bash to reload the file.
Code:
source ~/.bash_profile
 
Old 11-05-2023, 01:48 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,717

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
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/
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"HELP" .bash_aliases on fedora linux Linuxwolf Linux - Newbie 7 11-05-2023 02:11 PM
linux correct permissions for .bash_aliases L_Carver Linux - Newbie 1 06-16-2017 05:40 PM
modifying .bashrc and .bash_aliases asookazian Linux - Newbie 7 03-26-2010 07:36 AM
Aliases don't execute after placing them in .bashrc or .bash_aliases in 2.16 ubume2 Puppy 2 08-29-2008 11:41 AM
fluxbox doesn't consider bash_aliases Four Linux - Newbie 5 04-26-2007 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration