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

learn more… | top users | synonyms (6)

1
vote
1answer
9 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 Ubuntu server (command line ) i need the command line for this things i tried with avconv put i ...
2
votes
1answer
21 views

Solve 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
9 views

Access to X server denied from command line

I just installed Ubuntu 15.04 and the gnome3 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): ...
4
votes
2answers
164 views

How to disable popup “Close this terminal?” when closing terminal?

Each time when I want to close terminal there is a popup with question "Close this terminal?" because some process is running in terminal. I don't care about this process. How to prevent terminal from ...
1
vote
0answers
11 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 ...
1
vote
0answers
20 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 ...
2
votes
2answers
50 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 ...
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
15 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
29 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 ...
1
vote
1answer
20 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 ...
1
vote
0answers
21 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 ...
48
votes
2answers
56k views

How to get disk usage from command line?

How can I get the current disk usage (in %) of my hard drive from the command line?
2
votes
1answer
19 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 ...
8
votes
3answers
35k views

How do I execute FTP commands on one line?

This is what I'm doing when I log into a FTP: ftp user:password@server ftp: user:password@server: Unknown host ftp> echo HELLO WORLD! ftp> quit I'd like to do a one-line FTP command... ftp ...
2
votes
1answer
25 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
20 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
14
votes
3answers
58k views

How to configure Apache to run PHP as FastCGI on Ubuntu 12.04 via terminal?

I'm relatively new to the world of unix command line web server management/administration. Many hosts with control panel administration options allow you to change how PHP is run with a simple ...
9
votes
4answers
4k views

Is it possible to translate words via terminal?

I would like to translate words from English to Language X trough terminal If it is possible, what kind of dictionaries there are? Is it possible to use online services like webxicon.org trough ...
0
votes
1answer
967 views

How to combine ls and grep to list only files and using ls to count dirs

I have some troubles with combining ls and grep. The thing is that I have to use only ls and grep to list all files in home directory. Ive tried multiple of combinatnions but with no effect. I think i ...
7
votes
2answers
532 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: ...
1
vote
2answers
47 views

cli command to run keyboard shortcuts, e.g. Alt-F2

i want to use hot corner for run dialog window. what is the name and command of that tiny box (program) which is called when i press Alt-F2? This is cinnamon related question. for example, under lxde, ...
3
votes
2answers
786 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.
0
votes
1answer
48 views

Can't install gksu. Says it can't find it

Can't install gksu every time I put in the command to install I get the same thing unable to locate package gksu any ideas
1
vote
0answers
11 views

Is there a fix for Corsair Link

been trying to create new resolution output mode using: sudo xrandr --newmode "1368x768_60.00" 84.75 1360 1432 1568 1776 768 771 781 798 -hsync+vsync This is what I get: xrandr: Failed to ...
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 ...
69
votes
5answers
97k views
15
votes
3answers
57k views

How to install Virtualbox from command line?

OK, I a am a newbie. For some reasons, I need to install Virtualbox. I see that I can easily install it using the Software Center, but I trust most the "apt-get install blahblah" way, because I find ...
2
votes
2answers
39 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
2answers
39 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 ...
0
votes
0answers
5 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
31 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 ...
2
votes
4answers
94 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 ...
1
vote
0answers
36 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
43 views

notify-send not working, seems many bugs [duplicate]

i'm trying to create notification script but it doesnt work. When i click for example "control+alt+m" it should pop notification which it does, but its like default and i cant change anything. I ...
0
votes
1answer
53 views

Where is terminal?

I have just installed Ubuntu on my mom's Chromebook. I've installed Firefox using xterm, why xterm? Because when I search, look on the app thing where bash home is, and press ctrl+alt+t, terminal is ...
8
votes
5answers
1k views

How can I repeat the content of a file n times?

I'm trying to benchmark to compare two different ways of processing a file. I have a small amount of input data but in order to get good comparisons, I need to repeat the tests a number of times. ...
0
votes
0answers
14 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 ...
2
votes
2answers
327 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
2
votes
1answer
30 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
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 ...
4
votes
1answer
45 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: ...
1
vote
1answer
42 views

How to pass the line number, where the mismatch occurred in awk, to Shell variables?

I am trying to compare two csv files. I want the line numbers to be stored into shell variables or array. I tried something like this: paste <(awk -F, '{print NR,$1}' file1) <(awk -F, ...
9
votes
7answers
18k views

Why is the error, dd: /dev/rdisk1bs=1m: Operation not supported, popping up while trying to instal ubuntu on usb?

I am trying to install ubuntu onto my flash drive using the instructions from the website, http://www.ubuntu.com/download/help/create-a-usb-stick-on-mac-osx , and after step 8, the terminal asks for ...
1
vote
2answers
48 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
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 ...
16
votes
1answer
22k views

Arrow keys, tab-complete not working

I have installed ubuntu minimal(mini.iso) on my vm. I then used recovery mode to login as root and create an account with useradd -m admin and then set a password with passwd admin. When I login on ...
8
votes
4answers
13k views

Executing .bat file

I have a setup.bat file which install some applications and i want to execute it. This is content of .bat file : @echo off cls Rip_7z.exe x Rip0.7z cls del Rip0.7z cls Rip_7z.exe x Rip1.7z cls del ...
1
vote
1answer
28 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 ...
2
votes
1answer
17 views

Node modules installed but not available

I am new to Linux environment and right now learning node.js Following the tutorial i installed node module express globally as shown in below screenshot But when i am trying to use express in ...