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

learn more… | top users | synonyms (6)

0
votes
0answers
23 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
39 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
24 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
27 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
3
votes
1answer
29 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
19 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!
0
votes
0answers
7 views

Get Terminal Output in Qt Creator vector of strings

I just started with Qt creator and after a long search in google I couldn't found the answer I wanted, so I thaught asking here would give me a solution. I work in Ubuntu distro. Is it possible to ...
2
votes
1answer
26 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
119 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
26 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
313 views

Uncompress file from URL to hard disk?

How to uncompress directly from terminal if I have the URL of the file? E.G. unzip www.test.com/test.zip destination-folder-on-my-pc
0
votes
1answer
35 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 ...
1
vote
2answers
16 views

How to navigate to directory which file system object has just been moved to?

I often find when using mv somefile somepath I often need to go to the location which the file had just been moved to. basically mv somefile somepath && cd somepath is there a way to ...
0
votes
0answers
28 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
0
votes
0answers
28 views

Weird numbers and codes, help!

When I start my ubuntu computer, I see these options. "Ubuntu", "Ubuntu more settings", Memory test (memtest86+)", And Memory test (memtest86+, serial console 115200". When I press enter on the ...
0
votes
0answers
22 views

Is there a way to find out my SSD's controller from the terminal?

I tried using hdparm but I'm not seeing anything using the -I option that lists the controller that my SSD uses. Whether or not I can find the controller my SSD uses in its manual, I'd still like to ...
2
votes
0answers
43 views

Why the tar file is so big? [on hold]

I created a tar file of a directory. The directory is a few MBs big. The tar file has a size of more than 150 MBs!!! I created the tar file with the command: tar -cf <tar filename> ...
0
votes
0answers
6 views

NSFilter Service is not running, please go to Status : Services and start the service

I have properly installed NSFilter in PFsense and when trying to start it, a dialogue is coming saying that PFSense had been started but the status still remains inactive. Kindly Advice on this.
1
vote
1answer
11 views

How to use FQDN instead of just the host part at command prompt?

My current Ubuntu 14.04 command prompt is like username@host being the server FQDN host.domain.com but I want the command prompt be username@host.domain.com. How I can do that?
2
votes
2answers
167 views

What shows you the package you can install to get a command?

I have noticed on other Ubuntu machines when you don't have Maven and you try mvn it tells you to install maven or maven2. This does not happen on my xfce, how do I enable it?
0
votes
1answer
16 views

Issues installing SRILM (Ubuntu 14.04) [Solved]

I have been trying to install SRILM to use with Kaldi and have run into a particularly frustrating issue. To create a clear timeline of actions, here goes: I downloaded the tar.gz from the SRILM ...
2
votes
1answer
15 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 ...
-1
votes
1answer
27 views

Can't delete a folder even with sudo su

I used the Ubuntu customization tool and the terminal stopped so I decided "Oh well, I'll just close it!". Now the 2 folders it made 'remaster-iso' and 'remaster-root' both have a lock sign on the ...
0
votes
0answers
12 views

fatal error is giving [on hold]

#include <iostream> using namespace std; class A{ int l,w,h; public: void input() { cout <<"input"; cin >>l>>w>>h; } void calculate() ...
0
votes
1answer
38 views

How to run a web url script in a terminal

I am attempting to launch a script via my terminal. It runs fine in my browser but not in the terminal. Ive tried... sudo curl https://www.example.com/myscript?info=1 sudo wget -q -O- ...
1
vote
2answers
40 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, ...
0
votes
1answer
21 views

Adding Android SDK platform-tools to PATH downloaded from umake

I am using Ubuntu 14.04 Trusty Tahr, and I downloaded Android Studio with the umake tool provided by Ubuntu. This downloaded Android Studio at /root/tools/android/android-studio, and ...
2
votes
1answer
29 views

Open new Mate-Terminal in home folder

I'm not sure if this is default behavior for mate-terminal. When I cd into a directory and then open a new terminal tab, it opens in the same folder. I'd like this to default to home instead of the ...
2
votes
3answers
72 views

Bash for loop - how can I include blank newlines? (IFS) [on hold]

Please note this is pseudocode, and I am not trying to count lines this way, this question is to figure out how to include completely blank newlines in a for loop. cat file word word Since ...
0
votes
1answer
37 views

failing to install RVM while trying to install RoR

I am trying to install RoR on my system. I am following digital ocean's tutorial. While I try to install RVM \curl -L https://get.rvm.io | bash -s stable with this command I am getting the below ...
5
votes
2answers
41 views

How to get [TAB] to work with arguments of aliases to autocomplete as can be done with the actual command

I have many aliases that I created in my .bash_aliases file, and they are very useful, so if I want all info on a package I do something like: allinfo software-center And that does the equivalent ...
0
votes
3answers
42 views

Why does asterisk produce unexpected results?

I'm new to bash. From the Finding Files documentation: You want to find every file in ~/mydir and all its subdirectories, recursively, with a file extension of .htm (or .HTM or .Htm...) and delete ...
1
vote
1answer
40 views

What causes the changes in output of ps for GNOME Terminal in 15.04?

Working on this answer, I found out that the output of ps commands has quite changed in 15.04. A few examples in 14.04, the output of ps -e shows on gnome-terminal: $ ps -e 19006 ? 00:00:00 ...
-1
votes
3answers
58 views

Clearing the file by cat > filename

The files may be cleared using cat /dev/null > filename. Is it the same special file that is working whenever cat > filename is done?
0
votes
0answers
39 views

Running Java as another user

I have a directory called Minecraft for Minecraft servers. I've set it's owner and group with chown to minecraft:minecraft. This user and group exists. /etc/passwd contains ...
1
vote
2answers
47 views

In Bash or ZSH, is there an opposite to the `clear` command?

Typing clear into a shell creates a bunch of new lines until the output history above is all but hidden. Is there a command or method that does the opposite of clear? That essentially moves your ...
0
votes
2answers
22 views

history erase shell script not working

I am creating shelll script that is erase history of commands in the terminal. But the script is not erase the history of commands in the terminal. I follow below procedure 1. My script contains ...
0
votes
2answers
32 views

How do I reset user to default settings

Long story short, I accidentally ran sudo rm -rf ~ and as a result removed most of my home directory. In a panicked state, and with a bit of research, I attempted to recover what I could with ...
3
votes
1answer
33 views

How can I transfer my bash history to a new system?

My bash history is my memory, it contains commands that I don't want to loose when I update to a newer version of Ubuntu or change my computer. Is it possible to transfer the commands database to a ...
0
votes
3answers
63 views

How do I run Nautilus as administrator, and go to the next command line?

I'm on Ubuntu 14.04. Here is what happens when I run "nautilus /". The program runs, and the terminal goes to the next command line. Perfect.(http://postimg.org/image/9cpyfjqvp/) But here is what ...
0
votes
1answer
23 views

How does terminal autocomplete for arguments works? [duplicate]

I find the auto-completion feature of the terminal real amazing! And sometime I ask myself "where does the terminal get that information" For example a have coded a small C-Script with a few ...
-4
votes
4answers
49 views

copying a file from documents folder to home folder using cp command [on hold]

I am trying to learn how to copy a from one folder to other using command prompt using 'cp' command,file is getting copied from "home" folder to "documents" folder but i am unable to copy from ...
10
votes
5answers
813 views

How to kill all processes apart from specific one

On my local server, many java processes are running, and at the same time I am using Eclipse. Now when I need to restart my processes (I start processes through a shell script), before every start I ...
0
votes
0answers
19 views

Connecting to WiFi whilst in console

I currently have a raspberry pi running Ubuntu 14.04. I want to be able to connect to WiFi whilst in console with no GUI. I can currently connect to my universities eduroam WiFi when in the GUI, ...
1
vote
1answer
29 views

BusyBox v1.21.1 error

As I am new to the forum, I don't know where to ask this question, or even if there is a particular place to ask the question. Anyway, I have recently burned ubuntu 14.04.2 to a DVD and rebooted my ...
3
votes
4answers
63 views

How to copy a line in vi and paste it to console?

There is a text file with bash commands. Is there a way to copy a line from that file using vi and paste it to console? It may be nano as well. It is console only server installation. No mouse to be ...
0
votes
0answers
5 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 ...
1
vote
2answers
207 views

Why is my function not re-evaluated in PS1?

I'm trying to have a part of my prompt set dynamically by a function, so in my .bashrc I have: asdf () { echo -n $(pwd) } PS1="\u@\h:\w $(asdf)\$ " Opening a shell gives me what I expect at ...
2
votes
3answers
53 views

Get a script variable into subshell launched by find

Following on from this question I've used the following command in a bash script: find ${svn_root} -maxdepth 2 -type d -exec bash -c 'if svnlook info "$1" &>/dev/null ;then echo"$1" ...
0
votes
1answer
32 views

confused with different commands for syncing repo [closed]

I want to know the difference between following two commands at (A) and (B). <default revision="refs/heads/cm-12.0" remote="github" sync-c="true" sync-j="4" /> repo init -u ...