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

learn more… | top users | synonyms (5)

1
vote
1answer
59 views

New ubuntu 14.04.1 updates broke ssl components

Yesterday night I did apt-get update apt-get upgrade and after all the updates to Ubuntu 14.04.1 and apache 2.4, the ssl stopped working. Its an apache server running multiple sites and I have created ...
0
votes
0answers
24 views

Using seahorse generated password files from command-line

Seahorse (aka Passwords and Keys) is a pretty cool application for general password management. It stores the keys in ~/.local/share/keyrings/. Is there some way for me to easily read/modify this ...
1
vote
1answer
34 views

Set up shortcut for different terminal shells

I would like to get some practice using different shells (zsh and ksh, etc...) What is the best way to set it up so I can create a shortcut that will launch a terminal with the desired shell? I'd ...
13
votes
1answer
814 views

./ vs . for running programs under terminal

I'd need some clarification regarding the way we run executables under the terminal. This might be a lame question but what is the difference between running an executable with ./an_executable and . ...
0
votes
1answer
23 views

Split contents of a directory into multiple sub directories

I have a directory which contain more than thousand images. I want to split the files in to multiple sub directories, each containing 100 files. How do I do this?
10
votes
3answers
993 views

How can I get the monitor resolution using the command line?

I would like to find a wallpaper that best suits my resolution. How can I get the resolution just by writing commands in the command line?
1
vote
1answer
44 views

How to run libreoffice via ssh with x11-forwarding

I am trying to launch loffice or localc via an established ssh connection (ForwardX11 enabled). It does however fail to show the loffice gui / splashscreen on the computer from where I run my ssh ...
0
votes
1answer
28 views

how can I find files matching multiple extensions from current directory with a single command? [duplicate]

For example all files matching ".doc" and ".txt". I know how to find one extension type, but I need multiple without running multiple commands.
0
votes
2answers
41 views

App is accessible through Unity Launcher but can't access through terminal

I had installed Sublime Text 3 a few months back, and using some online resource I had made it accessible through Unity Launcher(unfortunately, I don't remember which resource, or how I did it). So, ...
0
votes
0answers
33 views

Rscript behaving differently when run from PHP exec and from command-line

Hi I'm running an Rscript with PHP exec and it is behaving strangely.......It launches R but throws an error at the following line:- ...
0
votes
1answer
34 views

unresolved host / Upgrade 12 to 14 Ubuntu/ Net Connection fine through browser

I recently upgraded to 'Trusty' i.e. Ubuntu 14.04. I tried pinging google.com through the terminal. ping google.com ping: unknown host google.com I tried the following: sudo apt-get remove --purge ...
0
votes
0answers
24 views

GMP compliation…/libtool: line 1128: ../mpn/m4-ccas: Permission denied

Hi i am trying to install gmp-6.0.0 but make command doesn't work...i am getting this error.kindly rectify thanks in advance. ../libtool: line 1128: ../mpn/m4-ccas: Permission denied make[2]: *** ...
0
votes
0answers
14 views

How can I login/logout of Game Center using the command line?

it would be nice to know a way to switch between clash of clans accounts faster. Going to settings and logging out then in GameCenter is getting annoying. I just want to be able to go to terminal and ...
-1
votes
0answers
21 views

GPy installation in ubuntu

How to install the 'GPy' in ubuntu? i tried the directions given here :https://github.com/SheffieldML/GPy. I also tried the ones using R and 'pcmanfn' mentioned on the page here. The error with the ...
1
vote
1answer
58 views

How to check using the command line which display manager is running?

I am using Ubuntu and linux mint, on linux mint i am using the XFCE desktop environment,as far as i know, the XFCE is a graphical frontend to the xserver, but i am not sure, if the XFCE could be also ...
0
votes
1answer
41 views

SOLVED prefix command error

When open Terminal I get this error ERROR: Directory [=] does not exist. The prefix script allows you to manage multiple installations of a set of software installed on the same machine. It helps ...
0
votes
1answer
35 views

A file (/usr/bin/sudo) highlighted with red in Terminal

Anyone knows what it means when '/usr/bin/sudo' is highlighted with red in the terminal? This wasn't like this a few minutes ago Apologies if this is a dumb question, but it's been a while I had to ...
-1
votes
1answer
42 views

v4l2, video capture via usb cam HELP

So im trying to capture video with my usb camera via vlc using this C code-> video capture example. After compile & run to the terminal i have a file that is supposed to be my video data and ...
0
votes
1answer
37 views

Ubuntu Boot Problem Boot-repair boot

When I start my laptop the following error appears "Operation System not found" When U use the Boot-Repair utility from my USB stick, I use the Terminal to put the commands but nothing happens. I ...
0
votes
2answers
36 views

Why doesn't the command upgrade work [closed]

When doing: sudo apt-get upgrade E: Invalid operation upgrate sudo apt-get dist-upgrade E: Invalid operation upgrade
0
votes
1answer
29 views

Change bash title to show truncated pwd [duplicate]

I use tilda as my terminal on Ubunut 14.10. The trouble I have is that I want to have the tab bar, since the titles in it are actually useful for navigation, but having username@computer:~/some/folder ...
0
votes
1answer
26 views

Ubuntu Touch - emacs gets 'fatally' stopped in terminal if user switches away to other touch applications

Here is my problem: I start 'emacs' in latest Ubuntu Touch running on Nexus 7. Then I swipe to switch to Unity desktop and there I launch, say, browser. Then I swipe again and switch back to terminal ...
0
votes
1answer
123 views

Ubuntu Touch - how to create Unity .desktop launcher to make UT terminal to open and execute a command?

I have latest Ubuntu Touch installed on Nexus 7. I just apt-get installed there 'emacs' package. Currently I open Terminal application in Ubuntu Touch and key in "emacs" to get it launched. I want ...
0
votes
0answers
21 views

Strange terminal color setting issue

I am running an Ubuntu 14.04.1 LTS server (3.13.0.45) which I usually access over SSH. I set up a custom prompt with the following in my .bashrc file: # uncomment for a colored prompt, if the ...
0
votes
0answers
69 views

When running gksudo in my terminal and trying to change file permissions, Nautilus crashes. How can I fix this?

I was trying to save some files to my usb drive and discovered I couldn't do it. So I decided to try to change my file permissions as a user by launching Nautilus as root. To do this I typed in gksudo ...
1
vote
3answers
47 views

Running graphical programs in console mode

I want to use Ubuntu in console mode (ctrl + alt + f1) instead of the graphical interface. Is it possible to run a graphical program, such a browser or a game from it?
3
votes
1answer
43 views

Download files with wget from a list but save with a specific naming pattern

This question is similar to Download files from a list but it is not the same as I want to go beyond this. Please do not close as a duplicate. I have a list of files to download in a text file ...
1
vote
1answer
61 views

What is the difference between scrub and shred?

I know both are for secure file deletion, but when should one be used instead of the other? Do both overwrite files with 0's?
2
votes
0answers
30 views

How to correctly deploy/install scripts?

I've developed several utility scripts that solve specific problems of my team's day-to-day work. Until now what I have done to deploy the script in my co-workers' laptops is as follows: Every ...
-1
votes
2answers
54 views

Unable to execute command in ubuntu 12.04 [duplicate]

I have been assigned a Ubuntu 12.04 system.I have administrator privilages but when i try to execute command such as ifconfig,sudo etc the command does not executes.I have executed ifconfig command ...
0
votes
1answer
39 views

Text appearing on top whenever I open terminal

Whenever I open my terminal I get this text at the top: bash: export: ...
0
votes
2answers
37 views

Whitespace Problems With Script and Variables

I'm trying to beat my head against the syntax of this. I'm getting problems with whitespaces and I can't see if there's a better way to do this. vardir=/home/user cd $vardir for i in $(ls "$vardir") ...
0
votes
1answer
72 views

How to open .jar file from shell script without losing focus? [on hold]

In my script I need to open .jar file and keep focus on terminal. I tried java -jar maps.jar &, but it didn't work. What should I do?
0
votes
1answer
61 views

How to recover a deleted Folder(/Desktop in this case)

I have accidentally deleted(in a way) or I can say dislocated reference to my /home/user/Desktop directory , Is there any way to undo what I have done. The following Describes what I have done $ cp ...
0
votes
1answer
45 views

Why can't I access directories in my home directory using the command terminal?

When I try to access directories in my home directory, I end up back at the root prompt. Here is a link to a snapshot of what happens:
-1
votes
1answer
104 views

/bin/bash: g++: command not found error 127

I was trying to install a software quicknet from a tar.gz file. After using ./configure when i tried using make it showed the following erroe g++ -I. -I. -c QN_args.cc /bin/bash: g++: command not ...
0
votes
0answers
19 views

Unable to execute tdist command in ubuntu

Unable to execute tdist and tdisco command in tconcoord file. It is showing this command does not exist. I tried to install it by using sudo apt-get install, but it is showing it doesn’t contain in ...
-1
votes
1answer
47 views

unable to install .deb file through terminal [duplicate]

I'm in confusion because I'm not getting my eclipse even after installing. I downloaded .tar.gz file of eclipse. Then I generated .deb file using command: sudo alien -d eclipse.tar.gz Then I tried to ...
0
votes
2answers
44 views

installing 7zip from terminal not working?

installed 7zip, from the following code :- sudo apt-get install p7zip It asked for my password and it proceeded to download the package. But it is not found in unity menu.What am I missing?
-1
votes
1answer
21 views

How do I download a .crt file to a certain folder/directory in Ubuntu

I want to download: gd_intermediate.crt from: https://certs.godaddy.com/repository and add to my: /usr/share/ca-certificates/mozilla/ Then I would like to check if certificate works. What is ...
2
votes
1answer
99 views

How do I run minecraft using a command

I am using SSR to record and I chose the option "record an opengl game" and I'm wondering what I put in the command spot:
0
votes
0answers
62 views

Ubuntu 14.04 Anaconda Install Help

I started using ubuntu not to long ago. I am trying to install Anaconda on my linux distribution. Am following the instructions below: http://docs.continuum.io/anaconda/install.html#linux-install ...
0
votes
0answers
30 views

command line login not possible

I am totally new to linux/ubuntu and got this error after installation The system is running in low-graphics mode Your screen, graphics cards, and input device settings could not be detected ...
1
vote
1answer
29 views

wget -m inserts robots.txt?

I was mirroring a server Im working on before revising code. To do this I used the command wget -m <address> Looks like everything is there. but what is this? a robots.txt file? I double ...
1
vote
2answers
47 views

How do I map a command to a file path [duplicate]

I am new to Linux. I have read the basic docs. I have just installed Filezilla. I first tried apt-get but the repository does not appear to be up to date. I then downloaded it from the Filezilla web ...
0
votes
1answer
45 views

How to scale title bars and menu in Ubuntu 14.04 with the terminal only

To keep the story short: Out of curiosity I wanted to know how the scale option would look like with value 5.something. Now I'm stuck with a highly oversized system where I can't change anything ...
1
vote
2answers
36 views

bash command starts new process

I have noticed that whenever I just execute the command bash in Terminal that it appears to have executed successfully with no output. I have also noticed that then when I want to close Terminal I ...
1
vote
3answers
72 views

How can I input to a file directly from the terminal

Other than bringing up a text editor, is there a way I can input text in a linux terminal directly to a file? (then enter a control code such as ctrl-c, to end the input) I'm pretty sure there's a ...
0
votes
4answers
94 views

Select only the first lines that contain a repeated string

I have a file that looks like that: 2_00003 R034671 31.25 96 55 2 100 195 77 161 7e-07 47.8 2_00003 R034668 31.25 96 55 2 100 195 77 161 7e-07 47.8 2_00003 R034667 31.25 96 55 2 ...
2
votes
1answer
54 views

Cannot Run Rscript from PHP but it runs perfect from terminal

I'm new to Ubuntu I'm trying to execute an Rscript in PHP using exec. However it doesnt run. When I run it from the terminal it executes perfectly. This is the code I run from commandline: ...