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

learn more… | top users | synonyms (5)

0
votes
0answers
7 views

open folders as administrator

Before anyone try to close my question as duplicate please read this! I have followed the instructions as here : I have restarted my computer but nothing happens. I still can't copy - paste files in ...
4
votes
2answers
257 views

Command not found -> did you mean -> Yes!

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
25 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
29 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
votes
1answer
12 views

trying to open .NET files on ubuntu 14.04

**>which software is required to open .NET files ? Mine is Ubuntu 14.04 LTS**
1
vote
1answer
119 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 ...
0
votes
2answers
44 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
20 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
26 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
1answer
20 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
189 views

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

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
105 views

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

I like to loop though subdirectories and more 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
31 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
17 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
29 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
40 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
2answers
168 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
45 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
23 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
44 views

script sh syntax error

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
24 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
28 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
33 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
35 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
18 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
23 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
69 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
27 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
22 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
73 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
31 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
37 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
votes
1answer
18 views

Converting .264 to .avi at once

I would like to convert all files at once to uncompressed .avi files that are at a pixel dimension of 704x480. (which are .264 from 264s folder). I have tried this code, but doesnt work. for ...
1
vote
1answer
19 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
33 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
62 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
13 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
23 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
19 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
44 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
25 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 ...
1
vote
4answers
51 views

Output a list of all file names in a directory with the last 5 characters removed from each

I have a directory that contains files with names, 00004.time, 00010.time, ... There is not pattern except the format, <5 decimal digits>.time I would like to output to a file, just the ...
3
votes
1answer
29 views

Parsing output of lsof or lshw to awk

I've noticed that lshw and lsof both take minute to load its output, and if I pipe their output to be processed by awk, I get the help message from awk and then . . . nothing from the first command. ...
3
votes
2answers
54 views

Ctrl+C command is not terminating infinite (while) loop

I have this little script. When I start it and the terminal has the focus Ctrl+C stops feh and then the while loop starts feh again. I am expecting that, as long as the terminal(!) has the focus, ...
0
votes
2answers
23 views

Is there a command to see all of a user's settings similar to the information displayed in the GUI?

I'm kinda a newbie to ubuntu (only been using it for about 6 months) and I love it! I have been trying to get used to the terminal interface and I use it for a lot of things relating to securing my ...
5
votes
5answers
567 views

What can I do in order to change the “.33” value into “0.33”?

I want to compare the value against 0 and it tells me that it is less than 0. I used solution=`echo $a / $b | bc -l` This issue occurs only when "a" is less than "b".
6
votes
8answers
203 views

Access individual lines of a text file and create separate text file with that name

I have two text files (say text1.txt and text 2.txt) both with same number of lines. Ex. text1.txt contains 4 entries 0127H 0132H 0982H 1772H text2.txt contains 4 entries stev mary beautiful ugly ...
3
votes
3answers
65 views

How to close a new firefox window from terminal(cfct command is not working) [duplicate]

I have multiple instances of Firefox running in Ubuntu 14.04. How can I close the recent opened window/instance from terminal?