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

learn more… | top users | synonyms (6)

2
votes
2answers
45 views

shell sript to read source file and use the key in the script

#!/bin/bash source /data/output/QAScripts/conf.ini var=$($1path) echo $var conf.ini is the config file which has LSTpath=/data/bb/loader I get below below error. Where am I going wrong. ./file ...
2
votes
2answers
52 views

how to update an individual app through terminal

I want to update Firefox alone without updating all applications. And I want to do it through terminal. Is that possible? Because I have a slow internet connection. I'm using Ubuntu 15.04 with a ...
2
votes
2answers
157 views

How to run an executable without prepending ./

I'm fairly new to Ubuntu and I do believe in jumping in head first into issues to learn. I know that I can run some GUI applications with Putty+Xming on headless Ubuntu Server. But I can't run Visual ...
57
votes
7answers
58k views

Jpeg files to pdf

I have many jpeg files in a directory, and I want to convert them to pdf and concatenate them together to make a document. How can it be done? I'd prefer the command line, as it will be faster.
2
votes
3answers
451 views

Syntax error near unexpected token `('

When I use below code in Ubuntu terminal, it works fine: rm !(*.sh) -rf But if I place the same line code in a shell script (clean.sh) and run shell script from terminal, it throws error as this ...
11
votes
5answers
423 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
1answer
15 views

Steganography/Execute command

I made a program that encrypts commands and executes on the remote system, but after that I wanted to learn steganography and I have one question: Is it possible to attach a script to a PNG or JPG or ...
0
votes
0answers
10 views

XML run bash scripts with parameters

I'm not very skilled in XML, so I ran into a couple problems. I want to start a bash script with a variable parameter, which is stored in an other xml file. this code is written by the supplier, and ...
0
votes
1answer
67 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 ...
11
votes
7answers
12k views

How can I run this sh script without typing the full path?

I'm still very new to Ubuntu. I'm using 12.04, and I'd like to know if there is a way to run this program/shell script without typing: /opt/idea/bin/idea.sh It's kinda tedious and I'm quite lazy. ...
1
vote
1answer
1k views

Launching Lightning from command line?

Is there a command that allows me to launch Thunderbird's Lightning from command line? I want to add a command to the Thunderbird launcher that allows me to open to a Lightning page.
1
vote
3answers
26 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 ...
12
votes
4answers
1k views

Restore 'cd ..' functionality after following a symbolic link

If I create a symbolic link in the terminal with a command like ln -s /path/to/some/directory symbolicLink and then follow the link with cd symbolicLink the terminal appears to think that the cwd ...
1
vote
1answer
13 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
31 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
32 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, ...
1
vote
2answers
27 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
9 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 ...
4
votes
7answers
28k views

display file properties via terminal

what is the command line that displays file infos (or properties ) such as in GUI method UPDATE i knew that ls -l shows properties , however , my question is very clear ; such as in GUI method . ...
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
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): ...
0
votes
1answer
5k views

when building u-boot /bin/bash: arm-none-linux-gnueabi-gcc: command not found

I am currently running Ubuntu 12.0.4 on a 64 bit machine. I have an AM335X development board. Along with the kit came the compressed kernel (linux 3,2), rootfs, u-boot, and ARM cross compiler ...
0
votes
1answer
41 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
13 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
22 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 ...
5
votes
3answers
6k views

List of all shared folders

Is there possible to list all shared folders (with their physical locations) from command line?
2
votes
1answer
68 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
29 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, ...
16
votes
1answer
378 views

How to print the output of tree to pdf without losing the color?

I use the following command to print a directory structure to a file: tree -h somepath/ > tree_of_somepath.txt tree gives a nice colorized output on the terminal, but as expected this cannot be ...
69
votes
6answers
137k views

How can I decode a base64 string from the command line?

I would like to write a bash script to decode a base64 string. For example I type decode QWxhZGRpbjpvcGVuIHNlc2FtZQ== and it prints Aladdin:open sesame and returns to the prompt. So far I have tried ...
10
votes
4answers
1k views

If I follow instruction from blog/web, is that always safe? [closed]

I am new with Linux especially Ubuntu. When I don't know how to do something with this OS I search on web and AskUbuntu and always have the answer. But sometimes it's not a great answer nor complete ...
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 ...
13
votes
6answers
42k views

Mount encrypted volumes from command line?

If I have an encrypted external disk (or an internal disk that is not in fstab), I see an entry for it in Nautilus -- with an entry like "X GB Encrypted Volume". I can click on this volume, and am ...
9
votes
2answers
578 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
1answer
19 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 ...
4
votes
2answers
169 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
21 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
25 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
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 ...
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
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
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 ...
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 ...
1
vote
0answers
27 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
22 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
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
25 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
15
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 ...