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

learn more… | top users | synonyms (6)

0
votes
1answer
412 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
686 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
15k 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
798 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
544 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
375 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 ...
2
votes
1answer
2k 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 ...
1
vote
2answers
929 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
23k 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
584 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: ...
46
votes
2answers
72k 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
136 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
123 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
877 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
2k 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 ...
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
394 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
138 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
16k 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
141 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
269 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?
1
vote
1answer
1k views

Install Line 6 Toneport UX1

What am I trying to do? As the title suggests, I am trying to install the the Line 6 Toneport UX1 software. What is the problem? Upon reaching the step where I am told to enter sudo apt-get install ...
1
vote
1answer
134 views

txt file and linebreaks

I used antiword >filename.txt To convert a .doc word document to a txt file. Then I edited the file in nano (also tried vim) and when the document is viewed in libre office and gvim or even text ...
15
votes
3answers
80k views

How can I run Disk Utility in terminal via a comand line?

First of all, I must say that I have successfully used Disk Utility in the past and thus I could rename my partitions. But yesterday, I saw that my partitions are not mounted, so I used Storage ...
1
vote
1answer
102 views

How do I install zopectl?

while trying to install zopectl and zope testcase I am getting this error: oomsys@oomsysmob-6:~/zopectl$ sudo apt-get install zopectl Reading package lists... Done Building dependency tree ...
1
vote
1answer
7k views

Installing proxychains. HELP NEEDED! [duplicate]

OK so i am new to linux. I am trying to install proxychains but im sure it has dependencies that i do not have on my system can somebody look at the following script and tell me the list of packages i ...
1
vote
1answer
1k views

Ubuntu 12.04.2 LTS boots to command line of some kind

I recently built a computer, then installed Ubuntu 12.04.2 LTS (Desktop, AMD64)using the Universal USB Installer from pendrivelinux.com. When it was first installed, the Unity bar (at the left) was ...
1
vote
2answers
206 views

A package was installed badly. How to remove it?

When I'm trying to update or install anything I get this error: Reading package lists... Done Building dependency tree Reading state information... Done E: The package equalx needs to be ...
0
votes
1answer
478 views

Bash script indenting command line

Hi I have used the following script, which after it has run and exited, causes my command line to display no text when typing, and after each carriage return instead of starting a new line like ...
0
votes
1answer
1k views

How to call php or apache to render a page from the command line?

I am running apache2 as a web server. I have a local file, example.php, which I need to see as rendered by apache. The easiest way to do this would be to move or link the file to the folder apache ...
2
votes
2answers
198 views

How do I remove a specific line and lines just before and after it?

I'm making a summary of the history.log files in /var/log/apt. To that end, I want to remove lines containing a certain pattern as well as the line immediately preceding and the line immediately ...