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

learn more… | top users | synonyms (6)

1
vote
1answer
17 views

how to remove app that has been install from terminal

I have installed an app called telegram using terminal but right now i cant Remove it i tried every thing but nothing worked please help me here is how I did install it please tell me how to remove ...
1
vote
3answers
17 views

How to run perform different actions from one script

How can I run different commands from one script? For example, if I want to run myscript new filename to create this file, and run myscript del filename to delete this file. At this moment I have a ...
1
vote
1answer
12 views

Losing environment info when using /usr/bin/sudo and /bin/bash

my question is why do I lose environment information like $PATH when running the following command: /usr/bin/sudo -H -u <user> /bin/bash -l -c '<command>' I'm trying to add the ...
0
votes
1answer
27 views

How to get a command to output the contents into Terminal, and my system clipboard [duplicate]

Let's say I have an alias on my system which I often use to tell me my system information, the alias is systeminfo, and it executes lsb_release -a which outputs: No LSB modules are available. ...
0
votes
2answers
30 views

Run python script when a file has been added to a folder?

Is it possible to run a Python script when a file has been added to a folder? In my scenario I have a folder that contains movies and the Python script gets the details (name, year, plot, rating, ...
0
votes
0answers
8 views

Reliance Netconnect+ not working

I have always used Reliance Netconnect by using the sudo gnome-ppp but recently I have this error message coming. GNOME PPP: Connecting... GNOME PPP: STDERR: --> WvDial: Internet dialer version ...
1
vote
2answers
23 views

Concatenate multiple files without header

I have several directories ("amazon", "niger",...), in which I have several subdirectories ("gfdl", "hadgem",...), in which I also have several sub-directories ("rcp8p5", "rcp4p5",...). In this last ...
0
votes
0answers
13 views

Package required to install for opening .grb files [duplicate]

I don't know which package is required to open .grb files. Please help me. best. bsourav69.
0
votes
0answers
11 views

Terminal gets really small when I double click the window

When I'm on Terminal I double click the menu bar on the window to downsize the window it gets really tiny to only the X is showing. Sorry if i am not explaining this well but I will include a ...
0
votes
2answers
20 views

How to give root permission using terminal [on hold]

I have a very serious problem, I'm using Ubuntu 14.10, and i have an root account, but after i have installed nvidia drivers, it simply dont show graphic interface anymore, so i have created other ...
0
votes
1answer
38 views

Determine if current login is first for the month in Bash

This is a continuation of my post here Although A.B. provided me with the correct answer, which is by utilizing the output of last and checking if it's the current log in, it did not solve my ...
0
votes
0answers
26 views

Ubuntu software centre cannot Install anything again

I used to install using my ubuntu software centre, but sometimes last year, it stopped working, now it shows "use this source" instead of the install button. I have tried every method I've seen here, ...
10
votes
5answers
384 views

How to edit multiple text files with a single command?

I want to remove the first line of multiple text files and replace it with another line. Is there a way to do this using the terminal? I know how to use vim, is there a way to automate it with it? I ...
0
votes
0answers
13 views

Dropbox downloaded zip contains same foldernames twice

I'm not sure if this is a Ubuntu related question. The problem: when I download a folder from dropbox, the files are spread over folders with basically the same name except for the folder name ...
0
votes
0answers
17 views

Access to X server denied from command line

I just installed Ubuntu 15.04 and the Gnome 3 desktop environment. If I try to run a GUI program from the command line (like Gedit), I get: XXXXX:~$ gedit No protocol specified ** (gedit:3299): ...
1
vote
1answer
17 views

combine audio and photo using command line in Ubuntu

What is the best way that I can make a video from one photo and one audio file like Mp3 I’m using an Ubuntu headless server, so I need a command line version for this... I tried with avconv but I ...
1
vote
0answers
20 views

Cron not working but manually run in terminal works

I placed a command in a script file called app.sh that simply execute an application. sh app.sh When I run it with terminal directly works fine!! but when put it under cron does not work..I tired ...
2
votes
1answer
62 views

How to install R version 3.2.1 – collect2: error: ld returned 1 exit status

I'm trying to install R version 3.2.1. I executed the following code ./configure --enable-R-shlib followed by make command. But the following error is obtained. /usr/bin/ld: ../appl/dchdc.o: ...
0
votes
0answers
11 views

how can i compile source code with scapy in ubuntu 14.04

I want to make reassembly of fragmented packets which I had received,so that I searched through google and found that "scapy" can make reassembly of those packets.now i downloaded "scapy software for ...
1
vote
0answers
24 views

As root, I can use su to make dconf changes for another user. How do I actually make them apply?

The scenario below assumes we booted up the computer and logged in as the user bort at the login menu. This is on 14.04.2. If I open up a terminal, as the user bort I can list a dconf setting, for ...
1
vote
0answers
17 views

connecting an Ethernet which needs a password and a user name?

I have an account through a wired network (Ethernet) internet provider - a person that have an internet LAN and share it with neighbours in exchange with money - every one of us have an account and a ...
2
votes
1answer
21 views

Remove list of files from different subfolders

I have a folder (call "folder"), composed of different subfolders ("subfolder1", "subfolder2",...). I would like to remove a list of files in all the subfolder of "folder", while some files are ...
2
votes
1answer
33 views

using wget to download xml for conky script won't keep html tags

So I'm trying to setup a conkyrc for weather, using the following script: #!/bin/bash station="KRAP.xml" wdir='/tmp/weather' update_xml() { if [ ! -e "$station" ]; then ...
2
votes
2answers
54 views

How to install tint2 on gnome

I am trying to install tint2 on my ubuntu-gnome 15. Here is what I have done: sudo sh -c "echo 'deb http://ppa.launchpad.net/killeroid/ppa/ubuntu jaunty main' >> /etc/apt/sources.list" sudo ...
2
votes
1answer
30 views

Copy/move a list of files to a new directory

I have an huge amount of files (e.g. 110011basz.dat, 110012basz.dat, 110013basz.dat,...) inside a folder, call folder. On the other hand I have a list related to the files I need to move to another ...
-3
votes
0answers
24 views

Error while syncing repo [on hold]

The error I got is as follows : error: can not fetch platform/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.8
8
votes
2answers
556 views

Is there an easy way to log all activity that a shell script does?

Is there an easy way to log all activity that occurs from a shell script to a file? I have a script. It outputs things like echo "instructions", as well as other program output. I know the commands: ...
3
votes
2answers
805 views

How to roll-back a shell command once executed?

I would like to know if there is a way to roll-back shell commands : for example rolling back a rm -rf command.
2
votes
2answers
44 views

Installation of Skype for Ubuntu 14.04 x64 with Terminal

I'm new to Ubuntu and try to install the latest version of Skype from terminal windows. Can anybody help me please, How to do this?
0
votes
1answer
21 views

Problem with installation of LaTeXDraw!

I was using LaTexDraw 2, which I had got it form Ubuntu Software Center. As the functions were limited and I couldn't use math to label out, I searched and found this new 3.1 version. After ...
0
votes
0answers
7 views

how to send uart pakage and read them on Ubuntu terminal (CH340G USB to Serial)

i have CH340G i dont know if it need to get driver or not i connect it to a PIC micro controller which sent bytes via UART RX TX to the USB to serial CH340G ,so does any one has idea about how to ...
0
votes
2answers
41 views

Give user password in terminal through argument

I have created a python application in my Ubuntu machine which run commands to terminal. I would like when the program start to continue running as root. I know that to get a root terminal we use the ...
1
vote
0answers
26 views

gnome-terminal / mate-terminal don't save history on ~./bash_history

Two days ago I was using my computer as usual, when I noticed that the commands I used in mate-terminal were not saved in the history. I tried installing gnome-terminal. But it does the same. I was ...
0
votes
0answers
15 views

How do I install ALPS (Algorithms and Libraries for Physics Simulations) 2.2.b3 on Ubuntu 15.04

I have installed boost_1_58_0 in a directory: /home/acerv3-571g/boost_1_58_0 Then I so much tried to install ALPS (Algorithms and Libraries for Physics Simulations) step by step based on its ...
1
vote
1answer
21 views

How can I delete all of my gnome sources?

I was trying to install some source codes using wget and apparently I accidentally downloaded every source code in gnome. I really don't want all of them at this time. I don't know if they already ...
2
votes
4answers
96 views

how can I List files in order

I had an 18GB file I needed to download on a less than great Internet connection. Torrenting wasn't an option. So I busted up the file into 100 segments, and eventually, all of it downloaded. Now I ...
0
votes
0answers
26 views

cannot execute binary file: Exec format error [duplicate]

i´m new in ubuntu and i´m trying to install a program created by one of my professors, but when i try to start it, the terminal send me the message: bash: ../bin/cidre.exe: cannot execute binary ...
2
votes
1answer
32 views

How to log in to an internet provider with with a password and user name through terminal?

I have an account through a wire network internet provider - a person that have an internet LAN and share it with neighbours in exchange with money - every one of us have an account and a password , ...
0
votes
2answers
33 views

No Launcher at all, just blank desktop (with bg image) [duplicate]

So, okay, I've been using Ubuntu 12.04 and this just came out yesterday when the launcher disappeared. I cant right click on screen 'cause nothing happens, I can open TTY with ctrl+alt F1, F2 and so ...
1
vote
0answers
38 views

Running an installation routine of a third party programm on Ubuntu 14.04

Please help me with the following problem: I try to install a third party program install.bin that is from mime type application/octet-stream. Typing sudo ./install.bin; echo $? in the terminal - ...
0
votes
1answer
41 views

I accidently ran 'sudo chmod -R 775 /' and it completely broke my OS/Shell [duplicate]

So I accidentally did sudo chmod -R 775 / when I meant to do sudo chmod -R 775 ./. I quickly realized and hit Ctrl^C, but not in time to save everything. I realize this is a really stupid mistake and ...
1
vote
1answer
29 views

Bash script exiting when repeated in double click execution

This is my code #!/bin/bash function boo { function goo { echo "Please enter name" read name; echo "Hello $name" } function xoo { echo "Please ...
1
vote
2answers
49 views

How do I find and replace in file1 with values from file2

file1 O,tested test,12345 OC,test explore,34567 file2 O,new order OC,new quote I need an output like below: New order,tested test,12345 New quote,test explore,34567
4
votes
1answer
46 views

What does '*' mean in the output to 'history' command?

I was seeing my history when I found a line with a * whereas, in general, the history has an output without any * I noticed this for the first time. When does this * appear and why? EDIT: ...
0
votes
1answer
23 views

Refusing to create an empty archive

I have a problem with this command: su -c 'tar zcvf yourname.tar.gz/etc/var/' Here is the website for my class assignment. Some of these command do not work correctly. Help!
2
votes
1answer
32 views

watch cuts off ps aux output when piped

While working on a (Python) script which is of no consequence here, I have come across a very strange behavior involving watch and ps aux, when the latter is piped to something else. I have managed ...
4
votes
2answers
126 views

Terminal autocomplete functionality can only match from the beginning?

For example, if I type in "apt-"and press tab,I can find "apt-get" below.But if I type in "get", "apt-get" cannot appear. How can I do to match not only from the beginning?
1
vote
1answer
31 views

opening terminal without logging in

To install a driver, I need to not have x.org process running. I found that Ctrl+Alt+F1 … F7 is supposed to fix it, however F1-F6 brings my computer to an endless black screen, and F7 does absolutely ...
2
votes
2answers
330 views

Uncompress file from URL to hard disk?

How to uncompress directly from terminal if I have the URL of the file? For example : unzip www.test.com/test.zip destination-folder-on-my-pc
0
votes
1answer
50 views

What's the command to type a phrase?

I'm trying to bind a certain key combination that types my E-Mail. I want it so that when I press a certain key combination, it types a certain phrase (my E-Mail). Basically- I need a command that ...