Skip to main content

All Questions

Tagged with
0 votes
0 answers
150 views

Ubuntu WSL2 startup error "is a directory" upon adding 'alias dsa='cd /home/rj/programming' to .bashrc

I added the following alias to .bashrc alias dsa='cd /home/rj/programming/dsa' and when I type dsa in the shell, bash does indeed change to that directory but when the shell starts up I get a strange ...
lkilgoretrout's user avatar
1 vote
1 answer
547 views

Unix Command (and bash alias) or script to band/unban IP addresses in Fail2ban without having to lookup and specify "jail name"

I am creating a bash alias (or possibly a script) to ban and unban IP addresses with fail2ban on Ubuntu 20.04. The bash syntax I am using to unban IP address is: fail2ban-client set YOURJAILNAMEHERE ...
DanRan's user avatar
  • 113
1 vote
1 answer
559 views

Ubuntu on Windows Terminal Hanging After Creating an Alias for Starship Prompt

Distro: Ubuntu-18.04 (running on Windows 10 WSL2) My terminal for any new Ubuntu instance is completely frozen with the message "Vim: Warning: Output is not to a terminal" This happened ...
Safwan Hossain's user avatar
2 votes
2 answers
11k views

Update `.bashrc` and reload

I have a script that inserts some lines to the bottom of my .bashrc, is there a way to source the .bashrc from within the script so that these changes remain once the script has finished? Here's an ...
Michael Barrowman's user avatar
1 vote
1 answer
829 views

Alias to prompt for tab completion for a set of directories?

Is it possible to make a bash alias, which would be able to prompt me for tab-completion of a set of directories? let's say I have a number of source code controlled projects, main path of each ...
Gnudiff's user avatar
  • 975
0 votes
1 answer
1k views

Matlab application command alias creation error in Ubuntu 18.04

I had installed MATLAB 2017b in my Ubuntu 18.04 PC and am able to execute it as : sudo /usr/local/MATLAB/R2017b/bin/matlab -desktop I intend to install another version sometime in the future as well. ...
skrowten_hermit's user avatar
2 votes
1 answer
484 views

How to refresh an alias each time it is executed

I have this alias to check the temperature of my Raspberry Pi: gpu=$(/opt/vc/bin/vcgencmd measure_temp | awk -F "[= \']" '{print $2}') cpu=$(</sys/class/thermal/thermal_zone0/temp) cpu=$(echo "$...
bitflip's user avatar
  • 35
0 votes
0 answers
182 views

Attempting to setup alias for ts-node

Trying to setup an alias for ts-node on ubuntu 17.10 by adding alias ts='ts-node' to ~/.bashrc and then running source ~/.bashrc. After doing the above and running ts file.ts I get: The program '...
Ole's user avatar
  • 747
1 vote
1 answer
2k views

how does CentOS load bash_alias file?

I'm used to Ubuntu, where I just create a .bash_aliases file and away you go. In CentOS, how do I get .bashrc to load the .bash_aliases file?
Thufir's user avatar
  • 1,960
31 votes
3 answers
54k views

l, ls & la -- what are the differences, and are there more of these commands?

So, through typing several commands I've found that there's not only ls, but l and la too. There doesn't appear to be any man entries on Ubuntu 12.14. They all appear to do similar things with minor ...
Seiyria's user avatar
  • 423