bash aliases do not expand even with shopt expand_aliases
I want to run an alias inside a bash -c construct.
I want to run an alias inside a bash -c construct.
The following codepiece is a script used to install Apache. I run this script in-place when executing it from the heredoc block that wraps it (APACHE).
I’m wondering how some terminal magic works internally.
I’ve got the following script:
The shellscript is very simple: retroarch $* -c /tmp/retroarch/Data/retroarch/gambatte.cfg (“retroarch” is another shellscript) If the filename passed contains spaces it fails: RetroArch [ERROR] :: Could not read ROM file. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please … Read more
Recently I have been exploring the enchanted /dev folder. I want to write some random data to an audio device in order to generate some noise.
I thought of automating the part when i first run vncserver, since it ask for a password (and while i know there a flag to pass a passwd file, i prefer to generate a new one every time i need/want to):
Is there a way to retrieve the desktop environment name (e.g. Gnome, Unity, XFCE, LXDE, KDE…) from the command line or using Python? Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you … Read more
After going through the bash documentation, this question and this one it’s still not clear to me how can I perform atomic write (append) operations to a file in bash. I have a script that is run in multiple instances and at some point must write data to a file:
Is there a way to clear up what is displayed on the shell console (in ubuntu linux) in just a single key or two? When I get flood of lines from grep and that exceeds the height of the window, I want to quickly scroll back to the position where I typed the command after the prompt. I can do so if I had opened a fresh terminal before I type the command, and just go to the initial position. But if keep using the same terminal window, I have to manually find the position. Ctrl+l is not an answer because it just scrolls, and the contents of the terminal remains. I cannot use less because the colored output of grep does not show up in color.