Linked Questions
73 questions linked to/from How do I create a permanent Bash alias?
0
votes
1
answer
16k
views
Where can I find my Python directory in Ubuntu
I need to do the instructions below in Python in order to make my python program use my compiled OpenSSL instead of the Ubuntu shipped one:
export LDFLAGS="-L/my/path/lib/ -L/my/path/lib64/"
export ...
5
votes
1
answer
2k
views
`alias` command in `.profile` not recognized until `source .profile` is called
I have the following line in my .profile file in my home directory:
alias flux='redshift -O 2500'
But whenever I login and type flux I get a flux is not a recognized command.
I then do a source ....
5
votes
1
answer
3k
views
How to copy terminal command in clipboard without using mouse?
gsettings set org.gnome.desktop.interface clock-show-date true
I want to copy this command into the clipboard so that I can paste it in a file or an Ask Ubuntu question easily.
I know I can copy ...
0
votes
3
answers
2k
views
making nano always run as sudo by default
my problem is that i keep forgetting to write sudo before every time i use nano, and eventually what happens is i work on a file for a while and don't have permissions. i remember hearing somewhere ...
3
votes
0
answers
9k
views
Configure `gcc-8` to be default gcc "error: no alternatives for gcc"
I am running ubuntu 18.04 and I currently have:
(tensorflow_p36) ubuntu@user:~$ gcc --version
gcc (GCC) 4.8.5
(tensorflow_p36) ubuntu@user:~$ gcc-8 --version
gcc-8 (Ubuntu 8.3.0-6ubuntu1~18.04.1) 8....
3
votes
1
answer
3k
views
permanant way of antlr4 set to working
i am using ubuntu 14.04 and i have to follow a list of 3-4 steps to use antlr4 for parsing (everytime).In windows there is a temporary as well as a permanent way .but in ubuntu every time terminal ...
3
votes
4
answers
302
views
Quickly navigate from one path to another
I noticed that frequently I have to do something like this:
I am in a path: /very/long/path/1 and I have to go to /another/long/path/ to do some things there. Than I have to come back to my /very/...
1
vote
2
answers
4k
views
Lauch Firefox Developer Edition using command-line
Context
On 18.04, firefox came preinstalled. On top of that, I installed Firefox Developer Edition. The latter is set as my default web-browser.
I don't use regular firefox at all, but I don't want ...
11
votes
0
answers
6k
views
How can I get the percentage of my battery life from the command line? [duplicate]
This question tells me how I can find the state of my battery from the command line.
While this is useful information sometimes I need something quicker, basically like the percentage or enough for ...
1
vote
3
answers
2k
views
Can i edit a bash shell command?
I just wants to modify a bash shell command like exit so when i write exit in the terminal it clears the screen, and echo some text, wait 2 seconds, then execute the exit function.
So is there any way ...
3
votes
2
answers
429
views
Create new terminal commands
I recently installed eclipse the manual way. Extracting the file, setting up eclipse.desktop etc. It all works flawlessly. I also know it is possible to install eclipsee using sudo apt-get install ...
3
votes
1
answer
1k
views
How do i open a Terminal with a command ready? [duplicate]
I really want to know this.
I don't always want to open a terminal then press Up arrow a couple of time or copy paste
0
votes
1
answer
653
views
How can I execute scripts as root without pointing to its location?
I tend to use sudo arp-scan --localnet --interface wlan0 a lot, but I find it cumbersome to type this each time. To speed things up, I've created a script, called arp-lw-scan, which should do this for ...
0
votes
2
answers
2k
views
How to install and use packages under a different name? [duplicate]
How do I install packages such as python3, and use them under a different name like python?
0
votes
2
answers
829
views
Problems with sudo inside shell script
I want to make a shell script to run VI with sudo if I try to edit a file that I don't have write permissions and for that I created an alias
alias vi=my_script.sh
#!/bin/bash
file=$1
...