I was thinking that it could be very useful to create a page where we can share our aliases and scripts in order to improve the usability of the system, making it easier for others who have not yet written that command.
If you like, you can share yours.
I just installed the system and I still have few aliases and no scripts.
Next to each alias and script it will be good to write what they are going to do, so we will help the person using them to do it consciously.
alias update='sudo pacman -Syyyu' #(updates the operating system)
alias aggiornaalias='source ~/.bashrc' # (update the list of aliases I just created)
alias aprialias='nano ~/.bashrc' #(opens the file that contains the aliases)
alias erasable='sudo chattr -i' #(makes a file erasable if you first gave it an erasable command)
alias connections='netstat -natup' #(observe networks in a particular and detailed way)
alias cp='cp -i' #(system)
alias df='df -h' #(system)
alias egrep='egrep --colour=auto' #(system)
alias fgrep='fgrep --colour=auto' #(system)
alias free='free -m' #(system)
alias grep='grep --colour=auto' #(system)
alias indelible='sudo chattr +i' #(makes a file impossible to delete)
alias ls='ls --color=auto' #(system)
alias more='less' #(by system)
alias np='nano -w PKGBUILD' #(system)
I hope this is a page that you will use to make your contribution to Manjaro, our beautiful operating system.
Ps. This page will also be created on the Italian forum to help other users to do exactly as we do.
If you update regularly and your mirrors are in sync then -Syu is fine. When you also run sudo pacman-mirrors -f
or a variant of that, to update mirrors, then using -Syyu is recommended.
If you get something like “… is newer than …” then you can use -Syyuu
Wwowowowo webcaptcha this is a real list of aliases!
I like it a lot, the only thing is that it’s a pity that not all aliases are commented on, and I wouldn’t want you trying some aliases that I don’t know or someone else does something irreversible.
Indeed. Half the aliases posted are already in the default Manjaro .bashrc and .zshrc, anyway.
Tip: Install kmdr from the AUR and it’s accompanying browser extension. Then you can check commands in your terminal with kmdr explain <command> and also highlight commands in your browser, right-click and select Explain command <highlighted text>.
Disclaimer: I am not affiliated in any way, however I am the AUR package maintainer.
Very well, I didn’t know the .zshrc file, I don’t know what aliases are here but in the .bashrc file there are not those nice aliases I saw there, I used one to download videos from youtube XD now I’m going to try the program you indicated, if I find a rootkit in the breakfast plate it’s your fault XD aushauhsuah
I understood that using the alias history -c you can find the commands you have given in the past without adding the history command to the commands as you use the -p. If I misunderstood you can be clearer and I think everyone who doesn’t know will be happy to learn.
What the alias does is re-run the last command except with root permissions. I should have explained that
Edit: As an example…
[myah][~]> pacman -Syu
error: you cannot perform this operation unless you are root.
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade...
there is nothing to do