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

learn more… | top users | synonyms (5)

-1
votes
1answer
35 views

Command to delete a file? [duplicate]

The title says it all. I am trying to write a shell script that deletes a persistent but unnecessary folder in my home directory upon execution. So, I ask you fellow Ubuntu users, what is the terminal ...
0
votes
1answer
22 views

install application using output of antoher application [closed]

I would like to use output of command: foo@bar:~/baz$ git remote add origin git@bitbucket.org:foo/bar.git The program 'git' is currently not installed. You can install it by typing: sudo apt-get ...
1
vote
1answer
18 views

Dynamically add new Terminator section for new program

I'm using something similar to a shell script that launches multiple pieces of software, each piece needing its own terminal for output (specifically, I'm launching multiple ROS nodes from a roslaunch ...
0
votes
0answers
30 views

Printer Share via Terminal

I've configured a printer share in Ubuntu and used Samba to share it with Windows, following this page. Every thing is working fine, but I have a couple of questions. Can I configure the Ubuntu ...
0
votes
1answer
57 views

Ubuntu terminal: How to change ctrl + c (interrupt) to something else?

I'm using Ubuntu 14.04 LTS with Unity right now. I've changed my copy and paste keys to Ctrl + C and Ctrl + V respectively. The command I've used is this: gconftool-2 -t str -s ...
1
vote
0answers
24 views

nc command: conflict between different Ubuntu machines

I am using Ubuntu 14.04. Then I have an Ubuntu 12.04 machine running on virtualbox. On the virtual box machine I listened on port 12345 using the command nc -l 12345 And on the host machine, I ...
1
vote
0answers
22 views

Ubuntu freezes and crashes on startup and nothing works [closed]

I've been trying for days to fix this. I thought it might have been my graphics card, but nothing happens when I try to install it from the command console. All Ubuntu has done for me so far is freeze ...
2
votes
1answer
35 views

Programs opening but not visible [duplicate]

OS: ubuntu 14.04 LTS Processor: Intel® Core™2 CPU 6320 @ 1.86GHz × 2 Graphics: Intel® 965Q OS type: 64-bit I have spent about a week researching a solution to my problem, which only occurred after ...
0
votes
1answer
74 views

Terminal access to AquarisE4.5 from Linux Mint [closed]

I just got my first linux phone today, and wanted to hook it up to my laptop and start messing around through terminal. But I can't seem to be able to get in touch with it. From what I've read so far, ...
1
vote
1answer
25 views

Secure Shell isn't propery loading .bashrc

I've got a seemingly simple issue - I have a 15.04 server that I connect to via ssh. Currently, I have a couple of folders added to my PATH environment variable in my .bashrc file: #... (rest of ...
13
votes
2answers
855 views

How to enable suggestion if command not found (“did you mean…” feature) in “bash” shell?

Similar to this question: How do I remove the "did you mean..." feature in the shell? When mistyping a command you get something like: root@pc:~# sido No command 'sido' found, did you ...
1
vote
2answers
41 views

Ignoring files while updating

I did the following commands: sudo rename 's/\.list$/.list.disable/' /etc/apt/sources.list.d/*.list sudo apt-get update sudo aptitude -f install libgl1-mesa-dri:i386=9.2.1-1ubuntu3 ...
1
vote
2answers
41 views

Why can't I delete a folder in my trash?

So I downloaded a "cracked" version of Minecraft. STUPID, I know and understand the dangers. Anyway, the download put a folder called "minecraft" on my computer. it contained a .png and a .jar file. ...
1
vote
1answer
156 views

Run multiple line as a single line command bash

Is there any way to run multiple line as a single line command in bash script. This is my multiple line bash script id=15; if [ $id -ge 30 ] then echo Successful echo $id else echo fail echo $id fi ...
1
vote
2answers
55 views

How can I know which file is being used in a bash for loop?

I have a very tricky question that I have been wanting to tackle for quite some time. If $line is from $(cat foo), then do action1 If $line is from $(cat bar), then do action2 for line in $(cat ...
2
votes
0answers
23 views

.desktop file to pass arguments received to Exec [duplicate]

I have a desktop file with this contents: [Desktop Entry] Name=Mozilla Firefox - default Type=Application Comment=Web Application Exec=/usr/lib/firefox/firefox ...
0
votes
1answer
31 views

I can not execute .bin file in a external usb

One moth ago I install cmap tools in my home folder, but now I want to install cmap in my external usb. I always install cmap.bin in my home folder using this command: chmod +x file-cmap.bin but ...
1
vote
2answers
28 views

Command to get the module that manages my Network Interface card?

I am looking for a command that would show me which module is responsible for managing my network interface. When I use the commandcat /etc/modules this is what I get an empty file.
3
votes
2answers
234 views

Ubuntu Terminal: C program (or other solutions) to kill processes running on a specific port and start xampp [closed]

Can anyone help me? The program's objective is to kill the processes running on port 443 and to then start xampp automatically. What I've done: #include <stdio.h> #include <stdlib.h> ...
3
votes
2answers
122 views

How move the biggest file in each subdirectory to current directory?

I like to loop though subdirectories and move the biggest file to its parent and then delete the folder. I have tried many things but never got it working correctly. It says that mv cant find the ...
1
vote
1answer
36 views

Clickable file that adds code in terminal and runs it automatically?

As my wi-fi driver is doing a bit weird I need to add codes into the terminal everytime I restart my PC to use Wi-Fi. I get that opening the terminal and typing in two lines of code isn't that much ...
2
votes
1answer
23 views

antlr4 alias not persisting

I'm trying to set up Antlr 4.5 as per the instructions here but the alias isn't accessible from where I've put my project after a reboot, which makes me wonder if I've done the classpath step ...
0
votes
1answer
32 views

Ubuntu on Android? [duplicate]

I want to install Ubuntu on android via Ubuntu CLI. I have Mobile A910. I just want to know that if I install Ubuntu in android, and if it will not installed properly or not working properly then ...
2
votes
1answer
63 views

sudo password in terminal not accepted

Assuming my login password is the one being referred, I cannot type that, or in fact, anything when password is requested. I read through the answer to an earlier question on this problem and tried ...
1
vote
3answers
240 views

split large file in bash

How can I pass all files in a list.txt which looks like file1_1.txt file1_2.txt file1_3.txt file1_4.txt to the split command (there are other txt files in the dir) and make it return the parts ...
1
vote
4answers
50 views

Add terminal output at the bottom of a text file [duplicate]

I am using: command > ~/Desktop/file.txt My problem is that I need to execute this command multiple times, and each time It will give me different outputs, in this moment each time I run it It ...
2
votes
1answer
28 views

Connect netbook to mobile internet via sim

I have a HP mini 210 running ubuntu. My netbook has a sim slot and thus I want to connect it to mobile internet. How can I do so?
1
vote
1answer
56 views

script sh syntax error [closed]

I have this script: #!/bin/bash IP='192.168.1.1' fping -c1 -t300 $IP 2>/dev/null 1>/dev/null if [ "$?" = 0 ] then echo "Host found" else echo "Host not found" fi When I try to run it, ...
1
vote
2answers
34 views

Getting commit sizes in Git?

Is there a way to find out how much space was used by each commit? If I push after each commit, I will see how much data is sent. This is one way of estimating it. But there must be a better way. ...
0
votes
0answers
30 views

Password does not work in the Ubuntu terminal [duplicate]

hola ojala me entiendan español yo tengo un lenovo thinkpad sl500 y tengo instalado ubuntu 14.04 lts en una micro sd de 16 gb cuando intento installar pipelight me pide contraseña y no me deja ...
2
votes
2answers
68 views

Install Click build targets in Terminal

The recommended/normal procedure is to install click build targets in Ubuntu SDK but I wanted to know if it's possible to install them in terminal.
1
vote
1answer
40 views

Is there a way to feed commands to ubuntu at runtime? [duplicate]

what I want is way to feed commands to Ubuntu at runtime that is to so that i don not have to wait for resources that gets locked to be free for example during during update we get this error ...
1
vote
0answers
24 views

Terminal Closes On Running clear and large output commands

When I run the clear command or ctrl+L or commands with large output like ps aux, my terminal closes. I have set the scrollback to unlimited.
0
votes
2answers
36 views

Terminal and caffeine-indicator

Do I just type in caffeine-indicator just like that in the terminal? I have already put the command for caffeine in the terminal and it went through O.K. It just won't show up anywhere so I can click ...
2
votes
2answers
103 views

Open multiple firefox tabs from command line

I'm trying to open firefox with two tabs from the command line, with two separate web addresses. So far I'm having no luck. firefox -new-tab https://www.evernote.com/Home.action -new-tab ...
1
vote
0answers
26 views

Terminal or Command Line [duplicate]

Where is the terminal or command line in ubuntu 14.04 LTS? I can't seem to find it. Can you please direct me to find it so I can type in the formula for caffeine so I can stop my screen from dimming? ...
1
vote
1answer
33 views

Why is my script file executable on a virtual machine?

I have ubuntu installed on a virtual machine in Windows. There when I run a script I just type sudo ./blabla.sh in the terminal to run it. Then I installed ubuntu from same iso file directly on a ...
0
votes
0answers
35 views

Xinput command in autorun script doesn't execute

I use two monitors 15 inch and 19 inch. With the 15 inch I also use a touchscreen. I have to map touch events to 15 inch monitor with this command: xinput map-to-output 11 VGA1 11 stands for id ...
1
vote
2answers
123 views

Shell script does not run when I double click

I have made a shell script (test.sh) on my Lubuntu (15.04) desktop. Permissions are: Only owner (View content + Change content + Execute). When I double click test.sh, I choose "Execute in Terminal". ...
1
vote
1answer
33 views

help with email commands [duplicate]

enter image description hereI want to send emails from my Ubuntu pc to other pcs on internet. I also have an account on yahoo.gr ,there are some commands like ssmtp or mail or mutt but they don't work ...
2
votes
1answer
40 views

How to enable cut or copy-paste in xterm

I regularly uses xterm for web browsing because of its image rendering property but the one thing which makes xterm difficult comparing to terminal is the copy/cut paste availability in terminal ...
1
vote
1answer
46 views

Unable to find “testdisk” or “testdisk-dbg” packages in 15.04

Hello after a first installation 15.04 working at best, even better than manjaro + now it seems that there were some attacks (as usual) and by this the ppa or sources.lists are a bit affected + how do ...
0
votes
0answers
37 views

avconv and codec parameter problems with Youtube-dl [duplicate]

I've been recently having some problems downloading youtube playlists. I'm quite ignorant with Linux and can't quite figure this out. I'll download a playlist and it will usually work for a couple ...
0
votes
2answers
84 views

Easy configuration of dual monitor? [duplicate]

I recently bought an external monitor which I use in Portrait mode attached to my laptop. With quite some regularity I have to connect/disconnect it monitor (I work at home and often need to move to ...
0
votes
1answer
17 views

Mozilla NSS building

In this instruction :"In order to start the build process, use "cd nss" and execute "make nss_build_all". By default this will produce a build in debug mode and for a 32-bit architecture. You may set ...
0
votes
1answer
54 views

Why I get “Cowardly refusing to create an empty archive” with TAR command?

I'm trying to follow this tutorial to full backup my linux / Ubuntu 12.04 after a fresh restore. my code in fullserver.sh : tar -cvpf /backups/fullbackup.tar --directory=/ --exclude=proc ...
1
vote
1answer
28 views

My software sources are selected as ubuntu old version 12.something while installing adobe reader [duplicate]

My software sources are selected to an old version of ubuntu while installing the adobe reader and im using ubuntu 14.04 LTS.now i am getting a notification in the above system tray that says "The ...
0
votes
2answers
71 views

terminal auto complete doesnot work in adb command

I'm using Ubuntu 14.04 (updated), in terminal, auto complete works well but when I'm using adb command in terminal, auto complete does not work anymore..
1
vote
1answer
28 views

Where is the manpage of the set builtin? [duplicate]

When I type the command man set It gives the postgresql 9.3.6 manpage documentation of the set command. (May be I need to precise that I have postgres installed in my machine). However, I am not ...
1
vote
1answer
31 views

How to create log file from a command (through alias)

The call is simply ud typed in a terminal. ud is defined as the following in my ~/.bash_aliases: alias ud='sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade ...