Monday 29 January 2018

bash - What does `>>` mean in terminal command?


I came across a command just now given below -


$ echo 'eval "$(jenv init -)"' >> ~/.bash_profile

From what i can guess, it is probably used for committing the changes in .bash_profile but what exactly is it used for?



Answer



It redirects the stdout of the program before >> and appends it to the given file after.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...