Questions about using the command-line interface (CLI).

learn more… | top users | synonyms (6)

1
vote
2answers
6k views

PATH-variable gets always reset. How to fix that?

A little time ago, I found out, that I can create custom commandterminals with expanding the PATH-variable. Unfortunately, it gets always resettet, when I close the terminal and opens it again. Do ...
1
vote
0answers
572 views

Ubuntu terminal not displaying unicode properly

I'm on 13.04 32-bit version. I'm working on this regEx library with unicode features. The problem is when there is unicode characters to display in the terminal it doesn't display in the proper manner....
0
votes
1answer
2k views

Keyboard not working properly in terminal

I'm using Ubuntu 12.04.2, and my keyboard doesn't work normally in terminal. When I press the arrow keys, the characters "a", "b", "c", or "d" appear. The Backspace key is also not working.
1
vote
2answers
1k views

Keyboard not working in Terminal

I'm using ubuntu 12.04.2 LTS. Dual boot with windows 7. But my keyboard is not working properly in terminal. While typing, when I press up arrow key it is displaying "a" letter and when I press down ...
0
votes
1answer
796 views

need to wipe my hard drive from crashed windows 7 to install Ubuntu

Trashed Windows 7 hardrive. Trying to install Ubuntu 13. Need to wipe hardrive but having no success with search items on line. Call me stupid but can't I just do it from the command prompt with some ...
0
votes
1answer
613 views

How to recursively set permissions for files only?

I want to remove executable permission for all files in my home folder, recursively, how to do that using command line?
1
vote
1answer
819 views

When I start VirtualBox 4.2 in Ubuntu 12.10 via terminal, what do the warnings mean?

When I start VirtualBox in the terminal, the following warning messages shows up: Qt WARNING: void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "" under id 16 Qt ...
1
vote
1answer
5k views

Port forward in terminal only

I have an old Ubuntu server (13.04), and want to open a port for this online game server style software for a mate. I need a port open, and to tell it that port (I know how to tell the game that port)....
1
vote
1answer
2k views

print contents of a directory structure (filesystem) to CSV on the command line

How can I catalog the contents of a filesystem to a CSV file? This is particularly useful for removable media. I've found a couple links that point in this direction: AskUbuntu.com: listing files ...
0
votes
1answer
964 views

Sign in in a website using the terminal

I'm trying to sign in in a website using this command: wget --save-cookies cookies.txt --keep-session-cookies --post-data 'login_email=aaaaaaa&login_password=123456' http://aaaaa.com/index.php ...
1
vote
1answer
802 views

How can I prevent the alt-tab shortcut from nesting terminal windows?

I like to have multiple terminal windows open sometimes, however when I use alt-tab it nests all instances of the same application in one icon and then you must wait a second for it to let you tab ...
2
votes
0answers
342 views

How to switch between nautilus window and (gnome-)terminal

I need a fast possibility to switch between a nautilus window and a (gnome-terminal) in the same working directory. At the moment I'm using the following setup: nautilus -> terminal: nautilus-open-...
2
votes
1answer
64 views

Installing a program over again using terminal

I've installed an application using sudo apt-get install ... in terminal. However, I forgot to sudo apt-get update before installation, so an old version of the application was downloaded and ...
1
vote
1answer
401 views

Add events to gcal via command line?

I'd like to know how to add events to my Google Calendar via command line. What's the best way?
42
votes
8answers
17k views

Some fast way to save and restore tabs of Terminal?

I have a Terminal window with a dozen named tabs open. I would like to save the current configuration and have it restored with names and directories. Is there a way to do this?
4
votes
1answer
5k views

How to create own commands for the terminal? [duplicate]

my question is the one which is written in the title. I installed a program (Teamspeak 3 Client) on my Ubuntu 12.04 LTS Clientversion System. Now I would like to start it in the terminal with the ...
0
votes
3answers
4k views

Bash Script for custom message

I'm trying to send an email using bash script. I tried using the following in the bash script with no success as I execute the script it asks for CC: #!/bin/bash recipient="tarun@gmail.com" mail -s ...
14
votes
1answer
12k views

Change terminal colour based on SSH session

Is it possible to automatically change the color of the terminal based on which server I am connected to through SSH? For instance, when I fire up the terminal it has the standard colors defined ...
3
votes
2answers
4k views

Google Chrome browser, how to permanently disable this disturbing toolbar?

In my Ubuntu Google Chrome browser, often showing a disturbing toolbar, i am running it in command line kiosk mode. How can i via command line mention never to show such toolbars? (after pressing X ...
3
votes
1answer
551 views

Stopwatch for command prompt?

Is there a stopwatch, so that I can measure time taken for different commands for BASH shell?
1
vote
2answers
3k views

How do i change the password of root, using webmin in one command line?

I have lost root password of one old server, where i can only have normal user login and via webmin login. Via webmin interface i have one option to execute command, i have been trying the following ...
3
votes
4answers
23k views

How do I get my shell prompt back after using Gedit from the terminal?

I'm trying to update my APT sources list in terminal by using gedit. My question is once I reach this point I need the command prompt "root@bt:/ect/apt#" back. the line is just blank. How do I recall ...
5
votes
1answer
4k views

How to fix git autocomplete in Ubuntu 13.04

In previous version of Ubuntu 12.10 when using git from command line autocomplete of commands, branches, tags... worked. After installing fresh Ubuntu 13.04 and git it does not work. What to set up to ...
0
votes
2answers
138 views

How to automatically add '&' after each command in a terminal

I use guake as a sort of "run" command, because my lxde launcher often misbehaves. So I just enter the command line in guake followed by & (So I get back the control of the console). Is there a ...
4
votes
3answers
124 views

Use Results of Find Command to Call vi

Is there a way that I can pipe the output of this command (assuming there is only one file found) to vi. I want to find this command, and then call it up in vi. Thanks. find . -name 'id.properties'
0
votes
1answer
712 views

problem with PATH when using $su

OK, I'm having a bit of an issue with PATH and running a process as another user under Ubuntu. First, we check where the bin is: root@host:~# whereis start-stop-daemon start-stop-daemon: /sbin/start-...
1
vote
2answers
14k views

Ubuntu adding path/Environment variables

I am trying to install apache maven 3 in Ubuntu 12.04 lts. What I did was open the terminal then I typed the following commands export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.5 [Then ...
4
votes
2answers
11k views

run Smartgit in Ubuntu 13.04

I have downloaded a Smartgit 4.5.5 and trying to use in Ubuntu 13.04. But the problem is when i double click on the script smartgithg.sh it opens on the Gedit. On the previous versions of ubuntu i did ...
2
votes
2answers
5k views

changing directory color in CLI

Im having a hard time reading in blue colored text, whenever i work using cli, directory colors are by default blue or so, my co-worker changed it to blue. how can i easily change the directory color ...
4
votes
2answers
4k views

How do I open a new terminal window to ssh into a new computer and execute commands?

Basically, I have a computer that I have to ssh into and pull up about 8 terminals to monitor various threads and log files. I would like to have a script from my build machine that can do this all ...
4
votes
1answer
5k views

Make an Amazon EC2 instance ask for sudoing password

I've launched an Amazon EC2 instance of Ubuntu Server 12.04 and it's all fine except, unlike with my local Ubuntu, the EC2 instance never asks for any passwords when I'm sudoing with the command line ...
1
vote
1answer
1k views

Problem writing 'pipe' symbol on danish keyboard (Ubuntu 12.04 server, console)

I just installed Ubuntu 12.04 Server (32-bit) on an old machine, and have problems writing the | (pipe) symbol. I have no graphical UI installed. My keyboard has danish layout, and all other symbols ...
5
votes
1answer
7k views

Can't find PhpStorm

I am new, never used Ubuntu until yesterday, so I'm not really into it, yet. I installed PhpStorm from JetBrains, but I can't find it anywhere, I need to run it. I searched /usr/share/applications as ...
17
votes
3answers
3k views

Ask to install program after “The program 'x' is currently not installed”

If you try to execute a program that is not installed you will get a message The program 'x' is currently not installed. You can install it by typing: sudo apt-get install x and instead of ...
2
votes
2answers
1k views

Execute terminal command without opening terminal

In terminal, I have an alias so that when I type note, a text document of my notes comes up. Often times when I'm browsing the web I'd like to make a quick note but I don't have terminal open, so I ...
0
votes
1answer
172 views

how to add path?

I am trying to complete the installation for some software. According to which I have to add path. I am not getting it how to do that. Please guide me how to do the following steps. Add the path to ...
2
votes
2answers
782 views

How to get original system command after overwriting it with a function?

I'm at a Hackathon right now so if someone would answer this soon, you'd be doing me a huge favor. I've written a function called ls() in my .bashrc that looks like this: ls() { if(some condition)...
1
vote
3answers
10k views

no internet for terminal- connect through a proxy

I'm using newly installed 13.04 on my lap. I've connected to wifi connection in our university and configured the proxy settings in network settings. I can access web and even software updater work ...
0
votes
1answer
340 views

Shutdown command history in terminal

The default terminal in Ubuntu (13.04) preserves previous commands in an iterable list, even from session to session. Same with Byobu terminal. But for some reason sudo shutdown .... is never ...
1
vote
2answers
1k views

How do I launch a web browser on my local machine that visits websites through the ip of a remote machine?

So, I want to visit a website that only permits access to computers from certain ip domains. My ip is not from one of the allowed domains, but I've ssh'd into a (linux) machine at another location ...
13
votes
7answers
7k views

Auto complete for often used command line commands?

For some projects I often type in a couple commands, like for example: cd an/extremely/long/path/in/which/I/have/some/kinda/project and ./runmyproject --with some --command line --options set ...
0
votes
1answer
241 views

a script to shutdown the other pc in the network if they donot respond to ping command

A (program)script to shutdown the other linux operated Computer in the same network , if they do not respond to ping command otherwise a message to show that they do not respond. please help me
4
votes
2answers
38k views

Android SDK and Path

Since I've downloaded the Android development kit as a package (sdk, eclipse bundled together), I extracted it into /opt/android/sdk I ran the command nano ~/.bashrc command and opened the file. Now ...
1
vote
1answer
201 views

How do I “:set prompt” by default for a particular program?

I'm new to Linux. I installed Haskell and was going through a tutorial, which showed me I can :set prompt "ghci> " to change the prompt. I like the way this looks. How can I make it so that ...
0
votes
1answer
120 views

How to copy a website inside my WWW to another computer and make it work?

I have designed a website to create and sign certificates (.csr, .key, .crt, .p12) in my netbook using Ubuntu 12.04. Now I have to demonstrate that it works but my teacher wants to test it using a lab ...
-1
votes
1answer
648 views

How to run compiled C++ program on startup? [duplicate]

I have compiled and made an exucutable C++ program in ubuntu.But It only runs in terminal.that is I have to give the ./example command in terminal.If I click it nothing happens and says no suitable ...
138
votes
1answer
95k views

Differences between /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin [duplicate]

I'm running an Ubuntu Server 13.04, but I see the same on a 12.04: I have six directories with command files. These are: /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin What are the ...
0
votes
3answers
653 views

What does the dd command do?

Someone rooted my box and executed a command, help! dd if=/dev/urandom of=.huehuehue what does this command do?
2
votes
1answer
305 views

Is it possible to make a python script that runs on a specific terminal-profile

I have this python script that connects my desktop to the internet. there is not much text in it only a few messages about current status and time. So it would be really nice if i can open it (.sh ...
19
votes
3answers
8k views

“♦: command not found” in tty after login

I have this problem after upgrade Lubuntu from 12.10 to 13.04. I press Ctrl + Alt + 1, enter login, password, wait two seconds and get: ♦: command not found". After this message I can type commands ...