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

learn more… | top users | synonyms (5)

0
votes
4answers
22 views

Add terminal output at the bottom of a text file

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 ...
1
vote
0answers
11 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
35 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, ...
-3
votes
0answers
22 views

write a C program that accepts DOS commands and displays the output [on hold]

I want to write a C program that accepts DOS commands and displays the results, for example: when the user writes "copy" the shell runs "cp" command
1
vote
2answers
20 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
18 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
1answer
23 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
27 views

Is there a way to feed commands to ubuntu at runtime?

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
17 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
19 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
65 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
25 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
20 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
63 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
15 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
16 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
56 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
12 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
22 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
18 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
30 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
28 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
52 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
21 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
564 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
194 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
63 views

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

I have multiple instances of Firefox running in Ubuntu 14.04. How can I close the recent opened window/instance from terminal?
5
votes
1answer
72 views

How to make reverse-i-search in terminal easier using comments?

When you press Ctrl+r in terminal this leads to use the reverse-incremental-search mode. The reverse-i-search lets you search for previous commands in your terminal, but this can get confusing when ...
0
votes
1answer
15 views

npm install -g not working

I'm trying to run node.js tutorials from NodeSchool, I've run the following commands: curl -sL https://deb.nodesource.com/setup | sudo bash - sudo apt-get install nodejs sudo apt-get install ...
2
votes
2answers
29 views

How do I keep the screen contents after quitting less or more?

After exiting from less or more, the screen contents are returned to what they were before. This happens with pagers like less/more, and some other commands. Sometimes it is necessary to keep the ...
-1
votes
0answers
14 views

using text browser on linux to display proxy information [duplicate]

I have this question on my project , and can't how can be answer it , could you help me? how can store proxy information Permanently for a text mode browser such as links? I want steps , if you can. ...
1
vote
1answer
25 views

Which installation images allow the installation of a command-line system?

I would like to set up a minimal command-line system as a starting point for a custom desktop, as outlined in Installation/LowMemorySystems guide. What exact choice of the installation image do I have ...
-1
votes
0answers
41 views

what are the commands of this .deb package? [duplicate]

I want to know the commands that a specific .deb package offers me. For example lets say I installed a package called x.deb. This package surely contains some commands that i can use. How to list ...
7
votes
4answers
974 views

What does sudo apt-get install curl command do? Why does it require the password? [duplicate]

I tried installing PlayOnLinux by using the steps according to a YouTube video, Install MS Office 2010 on Ubuntu 12.04-14.04, and used the command sudo apt-get install curl Then it requested my ...
2
votes
1answer
27 views

How to copy (or move) a file to a folder that is not existing while i am performing the copy (or move) operation?

Say I want to copy a file batman.py from path1/batman.py to path2/ . While copying I want to create a directory inside path2 and the copy batman.py inside the new directory there. How can I do it ...
0
votes
1answer
24 views

How to disable release upgrade notification at terminal/TTY login (not the GUI pop-up)?

I have Ubuntu 12.04 LTS on one of my old laptop. Each time I login through TTY or SSH it says: Welcome to Ubuntu 12.04.5 LTS (GNU/Linux 3.4.0-030400-generic i686) * Documentation: ...
1
vote
2answers
106 views

How to run sh file from terminal? [duplicate]

I installed Viber on Ubuntu: /home/nazar/Software/Viber/Viber.sh I can run it from terminal specifying this path. I want to achieve some short command as: viber For lunching application. How to ...
2
votes
1answer
30 views

How do I stop byobu from hijacking highlighting by `ls`?

I've just upgraded Ubuntu 14.04 to Ubuntu 15.04 (well, actually using KDE/Kubuntu, but it appears to be irrelevant) and I noticed colouring in the terminal is a bit messed up when using byobu. The ...
2
votes
0answers
12 views

How to specify which child terminal gets focus on terminator startup

I have a terminator layout which looks like this: +-----+-----+ | | 2 | | 1 +-----+ | | 3 | +-----+-----+ When I start terminator, child terminal 3 receives focus. Is there a config ...
2
votes
1answer
38 views

How to show the list of shortcuts produced by super key using command line

What is the command that shows the same result of holding the super key?! I.e. What is the command that list all shortcuts in system...
0
votes
1answer
33 views

Some jar files refuse to to run upon double-click and Terminal can't access them

MultiMC launches with no problems. I can't get Minecraft to launch by double-clicking it: it will open in Archive Manager. When I run the command java -jar minecraft.jar, Terminal returns the error ...
1
vote
2answers
27 views

How to run Cisco packet tracer via command line

I downloaded the Cisco Packet tracer .bin file from http://www.mediafire.com/?r95gqy7n331ht8t then typed the following command, sudo sh PacketTracer533_i386_installer-deb.bin that command ...
1
vote
1answer
33 views

How can I list mp3 files that have a leading period?

I have mp3 files in a directory. For this example, let's assume they are these 3: Enter Sandman.mp3 ...And Justice For All.mp3 St. Anger.mp3 How can I list (ls is highly preferred) all ...