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

learn more… | top users | synonyms (6)

2
votes
1answer
758 views

Make a USB device show up as an input and output device

What am I attempting to do? I am trying to make my Line6 Toneport UX1 (hooked up via USB) an output and input device at the same time. Why am I trying to do this? For those of you that don't know, ...
2
votes
1answer
142 views

Enable global terminal movement keys

In terminal I can use: Ctrl + H → Backspace Ctrl + M → Return (Enter) Ctrl + F → Forward Ctrl + B → Backward Ctrl + N → Next Ctrl + P → Previous Ctrl + A → ...
3
votes
2answers
30k views

How to reinstall Ubuntu From Terminal? [duplicate]

Is there any way to reinstall Ubuntu 12.04 straight from the terminal? My terminal works but I literally almost purged my entire operating system by accident (bad advice from a community member). The ...
4
votes
3answers
1k views

“Failed to setuid to root.” How do I Establish a VPN network?

My university decided that the old VPN-network, which worked fine, wasn't good enough anymore and abandoned it. Now I have to establish a completely new VPN-network. My university provided me with a ...
1
vote
1answer
2k views

How to run a shell script without terminal

I have a shell command that executes a command and sends it through pipe to a python file. The python file does various checks on it and then starts processes with parameters using subprocess.Popen. ...
0
votes
1answer
4k views

Terminal command to open URL's in default and non-default browser

I found this Ask Ubuntu question about how to open a URL in your default browser using the Terminal. Basically, you use the command xdg-open http://google.com My default browser is Firefox. But ...
1
vote
1answer
618 views

special character and parsing BUG - Bashscript

Failed to parse arguments: Argument to "--command/-e" is not a valid command: Text ended before matching quote was found for ". (The text was '"cpulimit') this is what i get when i run the following ...
2
votes
2answers
4k views

No interface, no Terminal

I just rebooted my computer and have no interface (except my desktop background and desktop files), which means no unity and no notification bar. Also, Ctrl+Alt+T doesn't work. Ctrl+Alt+F1, does ...
1
vote
2answers
2k views

Where to start in Linux programming [closed]

I am a student and I would like to study all these terminal stuffs and all. You all will be experts in this subject. I would like to know where did you all begin and what must I do to be an expert in ...
20
votes
1answer
6k views

How to configure pkexec?

Reading these questions and answers: When to use pkexec vs. gksu/gksudo? Why is gksu no longer installed by default? brought me another one that will create problems for new users of that command:...
0
votes
1answer
413 views

Unable to update by sudo apt-get update in the terminal [duplicate]

john:~$ sudo apt-get update E: Type 'ain' is not known on line 3 in source list /etc/apt/sources.list.d/ferramroberto-filezilla-oneiric.list E: The list of sources could not be read. when I run ...
6
votes
1answer
3k views

What is debootstrap --second-stage for

I just played around with debootstrap and schroot. I'm setting up my environments with debootstrap. I'm not using --second-stage option of debootstrap. When and how do I need to use this option. What ...
0
votes
1answer
45 views

What is the number after the index in terminal?

After typing for example, firefox & or xpad & in terminal, the echoed output looks like [number of background programs running] <an unknown number> What does that unknown number ...
0
votes
1answer
717 views

Are there different options for terminal autocomplete (tab) behaviour?

I don't like my terminal's autocomplete behaviour, to be honest I like windows' cmd behaviour better. Does bash (default shell in ubuntu) come with several options of the autocomplete behaviours? How ...
10
votes
2answers
16k views

Start a new process without blocking the terminal

Is it possible to do this? For example if I run "gedit tifatul.txt" via the command line, my terminal becomes blocked and I can't enter other command in this terminal before I quit gedit. Can I start ...
2
votes
2answers
813 views

How to hit Ctrl + C on a terminal so that child terminals do not be closed?

This script opens three terminals, but if I hit Ctrl + C where I run this script, all three child terminals will close too! File testChildDetach.sh #!/bin/bash echo $$ while true; do nohup xterm ...
0
votes
1answer
558 views

Setting LightDM background from command-line without Unity

When I'm running Unity, I can set the background image with the following command: gsettings set org.gnome.desktop.background picture-uri "file://$file". This also changes the background of the ...
1
vote
1answer
173 views

Bash is printing (only) one of my aliases before every prompt

I think this is the relevant bit of my ~/.bashrc file: # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors ...
3
votes
2answers
6k views

How to install a program ending in “.run” using terminal [duplicate]

I am following How to Install AMD ATI Radeon Graphics HD 6770M on Ubuntu 13.04 64bit but at step no 5. i don't know how to do it 5 - Install Catalyst driver, type the following commands on terminal: ...
0
votes
1answer
383 views

Command Prompt Stopped Listening to Me; Feeling Rejected

I'm SSHing into my headless Ubuntu 11.04 Server using PuTTY, and I'm in a byobu session. I started a mysql_safe daemon because I was trying to fix a password problem I was having with mysql. I was ...
0
votes
1answer
2k views

How can I create a shared folder using command line?

On a stand-alone PC, using the Live CD of Ubuntu, how can I create a shared folder using command line? After this, how can shared folder be shared with a group utilizing command line? Lastly, how can ...
3
votes
1answer
3k 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 used....
1
vote
2answers
937 views

How can you create a command with a Bash file

I created a .sh (or bash) file and I would like to make a command in GNOME-Terminal for the file. I know you run a .sh file by: ./file.sh After you compile it, I also know all the command are ...
3
votes
2answers
920 views

After charging the permissions, why can't you execute a .run shell lscript from the terminal in ubuntu 13.04?

You used to double-click and it would ask you if you wanted to open it in the text editor or run in the terminal. Now I have to open the terminal myself and type the appropriate shell command.
1
vote
1answer
3k views

How open *.sh *.py files in terminal Ubuntu 13.04?

In Ubuntu 12.10, after doing the chmod a+x ./*.sh command there was two options showing when double on *.sh file (Open in terminal - display) But in Ubuntu 13.04 even after doing chmod a+x command, ...
1
vote
1answer
264 views

Ho do I update to 13.04 from the beta? [duplicate]

I usually use: sudo apt-get update;sudo apt-get upgrade;sudo apt-get dist-upgrade;sudo apt-get autoremove To update my system which is the 13.04 beta, is there anything special I need to do to get ...
9
votes
3answers
25k views

Download ZIP file with curl command

How can I download ZIP file with curl command? I tried curl -sO, but error occurred. I want to download zip file from address: http://github.com/ziyaddin/xampp/archive/master.zip but can't. What must ...
1
vote
1answer
585 views

sudo apt-get failure

I was trying to sudo apt-get update and it spits out this errors: W: Conflicting distribution: http://us.archive.ubuntu.com precise-updates Release (expected precise-updates but got precise) W: ...
48
votes
2answers
77k views

Is it possible to clean the APT cache from the command line?

I ask because Ubuntu Tweak's Janitor is frozen due to the sheer number of packages in the cache that accumulated during the upgrade from 12.10 to 13.04.
3
votes
1answer
140 views

How can I alter the next/previous tab shortcut in Terminal?

I want to change the Next Tab shortcut in Terminal to be Ctrl+Tab. I tried using the gconf-editor as suggested here but nothing happens when I run that using Alt+F2. My googling for other solutions ...
12
votes
3answers
21k views

Not executing programs (*.sh ) with double click in 13.04 [duplicate]

I use Ubuntu to host many servers, some minecraft, some cloud services, and many websites. Unfortunately, after upgrading to Ubuntu 13.04, It will not launch the craftbukkit.sh even though it is set ...
2
votes
2answers
167 views

Why do CLI and GUI methods for shutting down have different security measures?

CLI option for shutting down the system is sudo shutdown -h now This requires the user to give the administrator password, whereas shutting down via GUI doesn't require any password. Why does GUI ...
0
votes
1answer
2k views

How to Create multiple folders each with multiple sub-folders

Is there a way of doing this at the terminal? i.e. without writing a script, e.g. mkdir subject{1,2,3,4}/book{1,2,3} why doesnt the preceeding work with or without the -p option?
2
votes
1answer
126 views

How to cat the `MAAS Key` of a user via `maas shell`?

When we login to MAAS web UI, we can see the user MAAS Key in the Preferences page. Is there any chance to cat it as a text via console command maas shell?!
15
votes
1answer
2k views

What's the history about the Shift + Arrow keys in terminal?

I'm wondering why Shift + Arrow Key result in one of the A, B, C or D letters. Why not other letters? Why any letter at all?
3
votes
1answer
881 views

Unable to execute shell scripts from `~/bin` [duplicate]

I am learning to write shell script from this tutorial on linuxcommand.org. It says - Most modern Linux distributions encourage a practice in which each user has a specific directory for the ...
0
votes
1answer
125 views

Bash syntax for arbitrary file descriptors

In the bash manual, opening an arbitrary file descriptor is described as: /dev/fd/fd If fd is a valid integer, file descriptor fd is duplicated. Does this mean /dev/fd/123, or dev/123/fd, or ...
1
vote
1answer
142 views

Select on which partition reboot

Is there any way to select a partition for the next boot. For example: sudo reboot boot=/dev/sda2 I would like to make a system backup script.
1
vote
1answer
105 views

How to suppress IPv4 checksum errors on virtual terminal?

(Other terminals like gnome-terminal and sshing have no problem at all.) Every 10 seconds, an error message (jme 0000:05:00.5: eth0: IPv4 Checksum error) constantly appears on the virtual terminal (...
0
votes
3answers
3k views

terminal closes when I run shell script

I wrote my own shell script, and I made it executable with chmod +x command. But when I click to shell file and want to run it in terminal, it suddenly opens and then closes in a second. What is the ...
2
votes
1answer
270 views

Fn key doesn't work inside shell

I've installed Xubuntu 12.10 and I've occours that Fn key (I used that for type / ) doesn't work inside standard shell (but it works in the rest of programs). How can I fix it?
0
votes
2answers
129 views

Failing with shell script

I am trying to run the following script in Ubuntu 10.04 but hitting with different issues for the intget i declaration. Could anyone please help me asap integer i i=1 while true do read ...
0
votes
1answer
82 views

Taking out my Subdirectory from my URL

I am hosting my own site..... Lets call it www.mysite.com. It is an online store, and I am using Apache2, and the Magento Community 1.7 Platform. I had an "Under Construction" page set in usr/var/...
2
votes
1answer
1k views

How do I change the color of my bash commands (only) in a terminal? [duplicate]

I've played with color codes to jazz up my prompt, but is there a way to change the color of what I type after said prompt to make my commands a little more distinctive in the scrollback? I can leave ...
0
votes
1answer
397 views

How to open a desktop shortcut from commandline

I created a eclipse.desktop and locked it to unity launcherd , when I double click on it on desktop, the eclipse was launched just like launching from unity launcher. But if I start it from command ...
0
votes
1answer
139 views

Directory and File permissions

I recently installed Ubuntu 12.10. I am the only user, and would like to be able to drag files from directory to directory. 1) How can I open up permission to do this? Do I do this from root? 2) ...
1
vote
1answer
2k views

How can I resume a download with wget?

I use wget with Flashgot in Firefox to download. I can't resume download if i pause(by ctrl+c). Because, i don't know the commandline arguments of wget to manually add it in a terminal. So i did ...
13
votes
1answer
17k views

How to change the font of various terminal emulators?

Mainly: Gnome Terminal Xfce Terminal Konsole LXTerminal Terminator Guake Yakuake Urxvt Xterm Mrxvt
1
vote
1answer
144 views

get a webpage from a local service

I was using the google-desktop's service for ubuntu (the abandoned package). You can get Google-desktop search results on a webpage in the browser. I was wondering if there is a way to get that ...
0
votes
2answers
273 views

Start xserver + Libreoffice with no GUI

I am wondering how to start libreoffice in tty8 from tty1. I tried startx -- :1 But then how do I lauch libreoffice? Using the above command is it possible to chose tty9-12?