Linked Questions
14 questions linked to/from Aliases not available when using sudo
1
vote
1
answer
208
views
Disable X support for emacs globally [duplicate]
First, I tried installing the latest emacs-nox, but that did not work.
Then, I added -nw to my ~/.bash_aliases, which works in most cases, except when I need to run sudo emacs [file] I still get ...
4
votes
0
answers
72
views
How can I run user aliases with sudo? [duplicate]
I would like to be able to run the aliased commands I have defined for my current user in conjunction with sudo as well.
This does not work by default, because they would have to be defined for root ...
1
vote
0
answers
63
views
Why is sudo colourless when user is colourful for `ls` command? [duplicate]
When I run the ls command using sudo-powers the file and directory names are all in white. When I run it as user the directory names are in bluish-purple, the scripts are in green and and the Asembler ...
0
votes
0
answers
24
views
Best practice for using .bashrc aliases under sudo [duplicate]
I have some productivity aliases on ~/.bashrc, which I'm missing when I run something on sudo. In example, I have an alias with parameters for ncdu, which doesn't work when I wanna use it on folders ...
69
votes
5
answers
80k
views
How do I download the command-line emacs instead of the GUI one?
I used sudo apt-get install emacs to download emacs. I expected the command-line emacs to start when I ran emacs but instead the GUI emacs started.
How can I download the command-line emacs?
2
votes
2
answers
452
views
How does "mv *" know where to move to?
I had a directory structure like this:
ravikumar@ravikumar-RV409-RV509-RV709:~$ tree test
test
|
├── 1
├── 2
├── 3
├── 4
├── a
├── b
└── c
I executed mv command as:
ravikumar@ravikumar-RV409-RV509-...
1
vote
2
answers
962
views
alias with parameters
I was recently starting to setup my usual alias. I ended up needing to pass more information than my alias originally needed
$ alias runserver = 'python manage.py runserver'
$ runserver 80 // turns ...
1
vote
2
answers
462
views
How to get the long 'less' prompt with sudo?
I have added the following to my user's .bashrc file to get a longer prompt in less:
export LESS="-M"
This is added to the root user's .bashrc file as well, so when I sudo bash to get a root shell, ...
1
vote
1
answer
563
views
alias or nano -B not working using sudo
I have an alias set up
alias nano='nano -B'
in order to always make backups on change of files.
I did this in both /home/<USER>/.bashrc and in /root/.bashrc.
It works if I use
nano ...
1
vote
1
answer
165
views
How to run an alias inside an alias in fish?
I aliased sudo to please with a space:
$ alias please='sudo '
$ please ll
I have tried this in Fish, but it doesn't work:
$ alias please='sudo '
$ please ll
sudo: ll: command not found
0
votes
2
answers
125
views
Sudo aliased to please; how do i make please see aliases?
I made sudo see aliases with alias sudo='sudo '. I aliased sudo to please (alias please=sudo), and with please it didn't worked: alias please='please '. please still didn't see my aliases.
How to make ...
2
votes
2
answers
76
views
Independence between sudo and the instruction it receives as an argument
I don't understand why the directory dir1 isn't shown with the same colour.
Although this may look unimportant, it seems to me that this is a violation of the so oftenly mentioned principle of ...
0
votes
1
answer
79
views
XAMPP is not working on Ubuntu 20.04.4 LTS
I have been using XAMPP to work on personnal project using PHP.
XAMPP used to work before when I first installed it but now there seems to be an issue that I can't seem to resolve.
Here's what happens:...
0
votes
0
answers
32
views
Text on Desktop that can be copied but not modified
I have some code that I use all the time in the terminal, so I would like to have it on the Ubuntu 18.04.3 LTS desktop. I want to be able to copy it from the desktop but not be able to modify it from ...