I use the following command to update
$ sudo dnf update & flatpak update
Is there a better way to do this. Does anyone have a script or alias thing that does all that with just sudo dufu or something simple ?
I am aware, that all I have to do is hit the up arrow key, and it will type the last used commands. I think all Linux commands in all distros do that. Right ?
David Locklear
On 4/14/20 1:33 PM, David wrote:
I use the following command to update
$ sudo dnf update & flatpak update
Is there a better way to do this. Does anyone have a script or alias thing that does all that with just sudo dufu or something simple ?
Why not just put
alias dufu="sudo dnf update && flatpak update";
into .bashrc? (Note that you want two &s there.)
Then just "dufu" will run that command.
Riki
On 14.04.20 19:33, David wrote:
I use the following command to update
$ sudo dnf update & flatpak update
Is there a better way to do this. Does anyone have a script or alias thing that does all that with just sudo dufu or something simple ?
I am aware, that all I have to do is hit the up arrow key, and it will type the last used commands. I think all Linux commands in all distros do that. Right ?
I put all my alias in a file under /etc/profile.d/
... alias s='sudo -s'; alias yu='sudo dnf upgrade --refresh'; ...
On Tue, 2020-04-14 at 12:33 -0500, David wrote:
I use the following command to update
$ sudo dnf update & flatpak updateIs there a better way to do this. Does anyone have a script or alias thing that does all that with just sudo dufu or something simple ?
I would be wary of using '&' here. Better to do them sequentially rather than concurrently. Use '&&' or ';'.
I am aware, that all I have to do is hit the up arrow key, and it will type the last used commands. I think all Linux commands in all distros do that. Right ?
The up-arrow thing is a convenience of the Bash Shell (and probably most other Shells too). It has nothing to do with other Linux commands or the specific distro.
poc
On Tue, 14 Apr 2020 23:53:58 +0100 Patrick O'Callaghan pocallaghan@gmail.com wrote:
I am aware, that all I have to do is hit the up arrow key, and it will type the last used commands.
The up-arrow thing is a convenience of the Bash Shell (and probably most other Shells too). It has nothing to do with other Linux commands or the specific distro.
In bash, Ctrl-r is your friend for reverse searching the history.
pinfo bash will tell you about the bash shell using a simple arrow guided interface.
On Tue, 2020-04-14 at 16:24 -0700, stan via users wrote:
On Tue, 14 Apr 2020 23:53:58 +0100 Patrick O'Callaghan pocallaghan@gmail.com wrote:
I am aware, that all I have to do is hit the up arrow key, and it will type the last used commands.
The up-arrow thing is a convenience of the Bash Shell (and probably most other Shells too). It has nothing to do with other Linux commands or the specific distro.
In bash, Ctrl-r is your friend for reverse searching the history.
Yes, that's pretty much standard across all the Shells I think.
pinfo bash will tell you about the bash shell using a simple arrow guided interface.
Hadn't come across pinfo. I always use info but this a nice alternative.
poc
On Wed, 15 Apr 2020 11:25:47 +0100 Patrick O'Callaghan pocallaghan@gmail.com wrote:
On Tue, 2020-04-14 at 16:24 -0700, stan via users wrote:
On Tue, 14 Apr 2020 23:53:58 +0100 Patrick O'Callaghan pocallaghan@gmail.com wrote:
The up-arrow thing is a convenience of the Bash Shell (and probably most other Shells too). It has nothing to do with other Linux commands or the specific distro.
In bash, Ctrl-r is your friend for reverse searching the history.
Yes, that's pretty much standard across all the Shells I think.
pinfo bash will tell you about the bash shell using a simple arrow guided interface.
Hadn't come across pinfo. I always use info but this a nice alternative.
Thanks for the response, and sorry for the confusion. After I sent it I realized I should have edited out your comment, because my comments were meant for the OP. I know you are experienced, so I wouldn't be giving you tips or advice unless you asked for it. :-) But, glad you got some value out of them.