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

learn more… | top users | synonyms (4)

2
votes
3answers
35 views

How to use wildcards for string conditionals using bash?

I want to see if a string is inside a portion of another string. e.g.: 'ab' in 'abc' -> true 'ab' in 'bcd' -> false How can I do this in a conditional of a bash script?
0
votes
0answers
13 views

Cannot start GDM

I am using Ubuntu 11.10. I was not able to remove a directory as root so I used the Ubuntu 11.10 install disk and chose the "Repair broken system" option. Far from repairing the system, it made it ...
9
votes
5answers
12k views

How do I get long command lines to wrap to the next line?

Edit It was my .bashrc file. I've copied the same profile from machine to machine, and I used special characters in my $PS1 that are somehow throwing it off. I'm now sticking with the standard bash ...
0
votes
3answers
41 views

How to backup and restore Firefox bookmarks from command line?

Is there an easy way to backup Firefox bookmarks to a file with command line. Running a find command, I managed to find this file: ...
0
votes
1answer
18 views

Opening a track with Banshee

How can I open a track with Banshee using command line? Obviously banshee file.mp3 don't work. Is there another command?
1
vote
1answer
22 views

Executing command line with other user

I'm struggling with a problem, i'm using Ubuntu 10.04 LTS, i have a command line "wvdial brt" wich i need to execute with every boot from my computer, i have 2 users in my computer and i have to ...
1
vote
1answer
25 views

Why can't I suppress this enumeration error?

I just installed Ubuntu Server 13.04, haven't done any updates nor installed any software, and I'm getting this error: hub 2-0:1.0: unable to enumerate USB device on port 6 And this keeps popping up ...
21
votes
4answers
7k views

Running a .desktop file in the terminal

From what I can gather, .desktop files are shortcuts that allow application's settings to be customized. For instance, I have lots of them in my /usr/share/applications/ folder. If I open that ...
0
votes
0answers
8 views

rcsed command? how do i get it?

There is apperantly a command called rcsed wich check out files from RCS and opens them in editor and then checks the file in again when closing it? I have installed RCS but cant find anything about ...
0
votes
1answer
24 views

How to start GUI from command line in ubuntu13.04 server? [duplicate]

I've installed the following version of ubuntu om my machine. ubuntu-13.04-server-amd64.iso But when I switch on the computer now, I get command line; Ubuntu 13.04 ubuntu tty1 where it prompts ...
12
votes
3answers
14k views

What is the proper terminal-way to shutdown?

I was trying to shutdown my PC through SSH. I executed sudo shutdown now The user was logged-out and Ubuntu starting turning off, but it froze at the last screen with the Ubuntu logo and the loading ...
0
votes
1answer
21 views

Bash alias not found stuck on my terminal

I was trying to make my Ubuntu connect to nexus tab and used the following command lines: echo "alias android-connect=\"mtpfs -o allow_other /media/GalaxyNexus\"" >> ~/.bashrc echo "alias ...
0
votes
1answer
12 views

Shell not handling escape character spaces

Recently it seems that shell has changed how it handles spaces in parameters. It used to handle them properly (Or at least as I intended it to), but now it recognises it as a bunch of different ...
0
votes
0answers
25 views

DNS doesn't seem to work in terminal on Ubuntu 12.04?

Fairly new to Ubuntu so please tell me if I'm doing something silly. Anyway. I've been having issues with URLs not being correctly resolved in the terminal. The problem I'm currently having is trying ...
0
votes
0answers
28 views

How to point grub to usable EFI vmlinuz files.?

On trying to install Ubuntu 12.10 Desktop amd64 to a desktop pc using a ga a75 ud4h motherboard (which is using an AMD 3870k APU with a new 1TB HDD) following the advice in the motherboard manual and ...
152
votes
16answers
144k views

How to add a directory to my path?

How do I add a directory to my $PATH in Ubuntu and make the changes permanent?
20
votes
1answer
14k views

What is the command to run System Settings from a terminal?

System Settings can be run from the launcher (pinned by default), the Dash, or the power cog. But what command would I enter in a terminal window if I want to run it from there?
0
votes
5answers
37 views

Copy files from a directory to a sub-directory (excluding the sub-directory itself)

I have created a folder(directory) named 'Parent' which contains several files(namely 'file1', 'file2'...'file100') and a sub-directory named 'Child1'which itself may contain files and folders . ...
0
votes
1answer
26 views

Can't seem to get script/cron job to work?

ive written a ffmpeg script to mass convert mkv into mp4. when i run the script as my user, and enter my password for sudo privileges it works very well from the command line. the script is: #! ...
1
vote
2answers
43 views

Can't download Gnome 3 for Ubuntu 12.10

How can I install Gnome 3 on Ubuntu 12.10? I tried to apt-get install gnome-panel, but it errors out because of unmet dependencies, even if I pass -f: kanha@kanha-Aspire-5580:~$ sudo apt-get -f ...
1
vote
1answer
44 views

Terminal aborts installation of a package no matter what I type

When I'm trying to install a package, say chromium I type this in the terminal: sudo apt-get install chromium Then it says: After this operation, 3.1415926 MB of additional disk space will be ...
6
votes
2answers
1k views

How do I burn a DVD ISO using the terminal?

I have a DVD ISO file and i want to burn through the terminal . We have many command formats but i am unable to choose the best & safe one . so please give me a best command to burn the ISO ...
0
votes
1answer
39 views

gedit opens different window though it should not

It's a follow-up of Why does gedit keep randomly opening new instances when opening files from nautilus? On Ubuntu 12.04 with Unity: I double click on a text file on the desktop or through Nautilus. ...
0
votes
0answers
20 views

how can i install gnu make 3.81 in ubuntu 10,04?

I downloaded gnu make 3,81 from http://gnu.org but i need to install it in my system 10,04 i used those commend make and make install but they are not working.
0
votes
1answer
19 views

Coloured view in vim editor not working in ubuntu 12.04

My Vim editor version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 4 2012 04:19:52) When I open a file(shell script, etc) with it, all the text are on same color. It's not user friendly. How can ...
1
vote
1answer
23 views

Command fails to execute in upstart session job

This command: mongod --fork --dbpath ../data --smallfiles --logpath ../data/mongo.log runs perfectly from terminal, while in directory /mongo/bin/ But, when I use same command and directory for ...
0
votes
0answers
14 views

Xubuntu Terminal ignores login shell

I tried to switch to zsh but Terminal app still loads bash when started. Fiddling with "run as login shell" didn't help. Here's excerpt from /etc/passwd $ grep synapse /etc/passwd ...
1
vote
2answers
20 views

How to pass text file contents as argument to console application?

What is the command line to run a console application with input argument fed from text file? text_file: This is a simple text file with characters and other symbols including tabs and new lines ...
1
vote
2answers
28 views

Why won't environment variables added to .profile show up in screen

I'm running Ubuntu 12.04 I added export LD_LIBRARY_PATH=/home/dspies/workspace/hdf5-1.8.11-linux-shared/lib to .profile but when I log in and open terminal and put echo $LD_LIBRARY_PATH there's ...
1
vote
2answers
44 views

What is sed and what is it used for?

I've been seeing a lot of sed lately, and I find it to be a rather confusing command. The manpages weren't particularly helpful, but I do know that it can be used for parsing the output of other ...
4
votes
2answers
5k views

How do you set the title of the active gnome-terminal from the command line?

Is there a way to set the gnome-terminal title from within the terminal itself without having to right click on the tab. Something like: active-terminal --title "Foo" There was a related question ...
2
votes
1answer
49 views

Why isn't ubuntu checking the correct directory in the $PATH variable?

I'm trying to run a program redis-cli $ ls -lh /usr/local/bin/ | grep redis -rwxr-xr-x 1 root root 4.2M Mar 24 19:49 redis-cli -rwxr-xr-x 1 root root 5.6M Mar 24 19:49 redis-server $ echo $PATH ...
0
votes
2answers
20 views

Problem with update from terminal [duplicate]

I am trying to get some update from my terminal but I get a bug: ubuntu@ubuntu-Inspiron-N5010:~$ sudo apt-get update [sudo] password for ubuntu: E: Could not get lock /var/lib/apt/lists/lock - open ...
0
votes
2answers
37 views

What's the command to install the build-essential package?

What's the command on 32-bit Ubuntu 12.04 for installing the build-essential package and linux headers generic package?
1
vote
3answers
52 views

App like DOS navigator for Ubuntu? [duplicate]

Dos Navigator was a very popular file manager for DOS / old Win. Something like Like Norton Commander, but waaay better in terms of feature support, and especially usability/UI. I was wondering if ...
0
votes
1answer
33 views

How can I run a software package I installed called 'openscam'?

I installed a software called 'openscam' but I cannot find its launcher. It's installer is a .deb file, after I clicked in it, Ubuntu Software Center installed the software, and finished it, but I ...
1
vote
1answer
55 views

Unity progress bar for gnome-terminal?

One of my favorite features of unity is the progress bar the launcher overlays on the icons for various programs like the file manager, or firefox. Gnome-terminal does not have a progress bar. What do ...
0
votes
0answers
9 views

How to solve “Error:Missing Dependency” when installing java on uxterm? [closed]

when I login to root and type this yum "localinstall jdk-7u21-linux-x64.rpm" a many messages pop up on my uxterm saying "Error:Missing Depency".What should I do? Please help . Thank You
2
votes
1answer
61 views

Automatically cd into directories?

In the terminal You use cd ../../........ to get to wherever you want, But I am lazy, I am wondering if it is possible to automatically cd into the directories if the command is simply the directory. ...
1
vote
1answer
29 views

connect to internet through 3g dongle in ubuntu server

As the title says, can i connect to internet through 3g dongle in ubuntu server fresh installation Any terminal / manual way? My purpose is to get connection using dongle in ubuntu server minimal ...
0
votes
2answers
33 views

How do I change the location in the terminal with a custom string?

If I have a really long path to a folder, and I just want the string 'longlocation' to replace it in the terminal, I know I can edit the .bashrc file and add this command: alias changelc='export ...
0
votes
1answer
18 views

Ubuntu two users logged with same name

I have a server and a ssh session, but it seems like I've pressed something and it was a shortcut so currently, when I do w it shows my other session (which I don't know how I opened). I closed my ssh ...
0
votes
1answer
17 views

Create folders in remote server after ssh login using commands

I need to create folders on the remote server, i try to ssh to the server and then create folders. The logs display that the ssh is successful but it stops after that and the screen stays at the home ...
40
votes
6answers
4k views

What is the difference between ./ and sh to run a script?

I have written a simple script. When I runsh <myscriptname.sh>, i got the correct output, but when I run ./<myscriptname.sh>, I got an error. What is difference between when I do sh and ...
0
votes
0answers
14 views

Open Text Summarizer in Java

I am using Open Text Summarizer on Ubuntu, and it works fine from my terminal... To use it I have to run the following command in terminal: ots -r 5 /home/arslan/tempEclipse.txt Now I want to ...
3
votes
4answers
6k views

Finding the ip address of another computer on the network?

Is there a program which can tell me the ip address of a computer when is connected to my network? A list of names or ip addresses. For example when my wife is on my main desktop computer I can ...
0
votes
1answer
30 views

How to add commands to terminal

how do I teach a new command to the terminal? I'm a long time Windows user and how I usually do this in Windows is to edit the environment path and add the file path to the command that I want to use. ...
0
votes
0answers
22 views

nmon and netstat

I'm currently using netstat -patc or even netstat -vpatc. However, watch is also useful to monitor which programs are using which bandwidth. I like the output of nmon as well, but wasn't able to get ...
1
vote
1answer
38 views

How to run a command with one click, preferably from unity's launcher

I'd like to run this command without having to open up terminal every time. sudo openvpn --config /home/ubuntu/Documents/vpnbook/vpnbook-euro2-udp25000.ovpn --auth-user-pass ...
0
votes
1answer
27 views

make terminal show up when called in a shell script

I am writing a shell script that will execute some application for a specific mime type, and it does it correctly, but when I have echo in my shell script, I dont see any terminal with the echoes ...

1 2 3 4 5 65