Linked Questions

2
votes
2answers
56 views

Bash Function Oblivion [duplicate]

I'm fairly new to Linux, as many of you may have noticed. What I speak particularly is adding personal, user-generated functions and alias in my .bashrc file. I'm not exactly sure how bash works but ...
2
votes
1answer
37 views

Is it possible to diy a command under Ubuntu? [duplicate]

For example, can I set? gb = cd /media/Dan/evolution so that everytime I execute gb in bash , I can cd to that particular directory? I find something online, 'alias' command. But It seems can't do ...
44
votes
5answers
32k views

How to create a permanent “alias”?

If you create an alias for example: alias cls="clear" It exists untill you kill terminall session. When you start a new terminal window the alias doesn't exist any more. How to create "permanent" ...
20
votes
4answers
10k views

How save my “alias” entries forever [duplicate]

I want to save my alias commands forever like the default ones when I type "alias" so I don't retype them every time I leave my bash
4
votes
7answers
513 views

Short-cut for switching to a given directory

In the Ubuntu terminal I find myself spending considerable time to switch to a particular directory every time the computer starts up. Is there some way I can make this process easier? Is there some ...
10
votes
2answers
4k views

How can I get the percentage of my battery life from the command line?

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 ...
6
votes
2answers
2k views

How do I make bash warn me when overwriting an existing file?

I think the title is pretty self-explanatory. All i want is bash to warn me whenever I attempt to overwrite an existing while using cp or mv. I'd really appreciate some help. :)
6
votes
2answers
1k views

How can I create an alias so that when I enter “kt” it executes “killall gnome-terminal”?

How can I create an alias so that when I enter "kt" it executes "killall gnome-terminal"?
0
votes
3answers
8k views

How to undo an operation done in terminal?

I had deleted an important file once and later i had changed the permissions of a file which i am not able to revert now. Is there any way through which i can undo delete or revert permissions on ...
3
votes
2answers
212 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 ...
0
votes
1answer
2k views

Xampp Control Panel Can Not Launch

After searching all over the WWW, I couldn't solve my problem. I want to launch Xampp via desktop control panel and also I made the xampp-control-panel.desktop in desktop and ...
1
vote
3answers
201 views

Volume via command line in 12.04 [duplicate]

I need to allow several clients to affect the volume of a central server. Can I change the audio master volume via command line in Ubuntu 12.04?
0
votes
2answers
180 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 ...
0
votes
1answer
176 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
3answers
130 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 ...

15 30 50 per page