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

learn more… | top users | synonyms (5)

0
votes
1answer
15 views

Renaming png fails with shutter

I am learning to use shutter and from the CLI I was trying to take 10 screenshots at 1 second interval and to rename them, however when I try I get an error message that says: "There was an error ...
1
vote
2answers
28 views

parsing out in bash

my file looks like this // [297]((((21:0.125204,20:0.125204):0.00994299,(28:0.0790047,(7:0.0146105,5:0.0146105):0.0643943):0.0561423):0 segsites: positions: 1 2 4 6 9 10 45 67 78 89 ...
0
votes
0answers
11 views

Xubuntu 12.04: “Open In Terminal” doesn't work

You may be wondering why I'm using an outdated version, that is because my network card doesn't work in 14.04. Anyways, I have set chmod +x (even u+x) to my .sh file, and when I double click, nothing ...
6
votes
3answers
69 views

Command equivalents of Unity keyboard shortcuts

I'm wondering is there any way to achieve the affect of the Ctrl-Alt-Keypad shortcuts in Unity using terminal commands instead? I want a command that sets a gui window to half the size of the screen, ...
2
votes
1answer
17 views

Reset hibernation delay from command line

My hibernation on Ubuntu 14.04 LTS works fine. But someone keeps changing its delay to never hibernate. I am tired of paying days' worth of electricity for 10 minutes usage a day. Is there a way I ...
2
votes
1answer
138 views

How to automatically answer interactive cli program (not script) with bash script?

I've googled this, and almost all I could find is to answer a bash script and this doesn't work for me. The answers I found told to do: echo "yes" | ./script or ./script <<< yes or ...
0
votes
0answers
44 views

Why does the Terminal minimize when initiated in Ubuntu 15.04?

After installing Ubuntu 15.04 update Steam quit working. So I tried to remove Steam installer and reinstall it; along with the installation I received the message: Steam, Steamdeps are run in a ...
0
votes
0answers
12 views

how to connet to hidden network from terminal [duplicate]

My Ubuntu graphics has stopped working. I can only access the terminal. So I am trying to connect to a hidden network through the terminal. I have tried using iwconfig for the same. But with no ...
2
votes
0answers
18 views

In Ubuntu 15.04, how do I disable the hints in the terminal? [duplicate]

So, I just updated to 15.04. Looks great, but the first thing I noticed when opening up a terminal was that it reads: To run a command as administrator (user "root"), use "sudo <command>". See ...
14
votes
5answers
836 views

Where are commands `fg`, `bg` and `jobs` installed? [duplicate]

fg, bg and jobs are used for job management. And for some reason (maybe it's just me), I'm not able to find where their binaries are nor their manpages (whereis prints no information). which gives no ...
0
votes
1answer
35 views

KDE (Kubuntu) login issue

the problem is much more bigger then what the topic says. I am new with Linux and was watching a tutorial for certain commands... and I learned about this command "startx". What this command does is ...
0
votes
0answers
13 views

Is Vala a good choice for making a gui to a program? [on hold]

I've written a simpl program that manages environment variables where you can inspect your environment variables like printenv | sort | less. Now I want to make a GUI for my program. I tried Vala and ...
-1
votes
1answer
22 views

Open a folder in a Graphic File Manager from a terminal [duplicate]

How can I open a folder in a GFM (in a files window) from the terminal? Thank you for your kind help.
2
votes
1answer
57 views

how to create a symbolic link that works relative to the working directory

consider the following : x/ ph/ file1.txt -> ./../file1.txt file1.txt y/ ph/ -> /x/ph/ (this is full absolute path of x/ph) file1.txt /y/ph is a symlink for ph folder ...
0
votes
1answer
26 views

How do I export a variable to the `sh` shell? [duplicate]

Calling export MYVAR=/path/to/whatever from .bashrc obviously works for bash but not for the sh shell. Unfortunately, the Matlab launcher seems hell-bent on using sh and not bash. As such, the ...
1
vote
1answer
11 views

How can i install xfonts-… packages?

I need to install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic packages. But I get an error, that they are not exists. Using Ubuntu 14.10 Need them for xvfb
0
votes
0answers
16 views

Pass multiple specific files as one string arg from another java program [on hold]

I am trying to pass few specific paths as a string arg in one program to call another java program. I get an ArrayIndexOutOfBoundsException error but when I pass the exact same arg in the command line ...
1
vote
1answer
24 views

Running Shell Script on Double Click

Okay, I have opened nautilus and edited preferences to ask when I double click an .sh script to run in Terminal. Well, I don't want to use a .desktop file; I want to just simply double click on the ...
7
votes
2answers
233 views

How to use grep output as a path for cd?

How can I pipe grep output as an argument to the cd command? For example: [root@xxx xxx]# pip install django | grep '/usr.*' Requirement already satisfied (use --upgrade to upgrade): django in ...
1
vote
1answer
30 views

Why does the more command not work when bound to a keyboard shortcut?

I have two commands that both work in terminal: notify-send "$(more /home/tim/autest.sh | head -1)" and notify-send "$(cat /home/tim/autest.sh | head -1)" putting them in a script like this: #! ...
1
vote
1answer
69 views

How get rid of the terminal message about sudo [duplicate]

After upgrading to 15.04 I get a message with every new terminal to tell me how to use sudo: To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for ...
2
votes
1answer
35 views

How to permanantly change the color scheme of the terminal?

I have just installed solarized color scheme for ubuntu gnome terminal. I have followed this tutorial. eval dircolors ~/.dircolor - this command s causing problems. When I use this command, it ...
0
votes
3answers
19 views

What does !! do? [duplicate]

I can run a command like this: tim@Hairy:~$ echo Hello Hello Then I can run the command !! and it does it again: tim@Hairy:~$ !! echo Hello Hello I can even run it with another argument to the ...
0
votes
1answer
22 views

sleep getting hang in shell script

I had a cron script running on my Ubuntu PC ( 12.04.3 ) which periodically checks for disk space. There was a "sleep 5" also used in this script. This system was up for a month, but an issue is ...
2
votes
1answer
191 views

Copy all folders with name “ABC” to another location

I have 100 folders and every folder has a subfolder called "ABC". I want to copy folder structure and contents of "ABC" to another location. How can I do it through Ubuntu terminal?
0
votes
0answers
16 views

How to install AMPPS 3.0 from terminal?

After downloading the file, when trying to install ampps 3.0 on the terminal, I got a message saying: ......Extraction failed. .... Terminated . I am using the file Ampps-3.0-x86_64.run from ...
3
votes
4answers
109 views

Ordering of the commands used to install from a ppa

To install from a ppa, you have to use the following 3 commands: sudo add-apt-repository example/program sudo apt-get update sudo apt-get install example-program Is there any reason not to do this: ...
-1
votes
0answers
22 views

NSENTER command not found [duplicate]

I have Ubuntu 14.04, following some course learning around docker and Openstack, I needed to run a command as follows $ nsenter -m -u -n -p -i -t 19636 command not found . After googling, I found ...
0
votes
1answer
20 views

Spellcheck an HTML file in the terminal

I have been trying to find a way to spellcheck my HTML file's content in Sublime for quality control. I have referenced several articles referring to aspell but after installation and trying to run ...
1
vote
2answers
22 views

How to Copy special file (steam.pipe) in Ubuntu?

I had been using Ubuntu for a period of time, and had faced this problem: I am using ubuntu 14.10 right now and have Steam installed in my /home/user/.steam folder. When i was copying the .steam ...
0
votes
1answer
19 views

Export a png from kra, a krita document

How to export a krita, kra document with many layers, to a png using command line ?
2
votes
4answers
403 views

How do I search for a process by name without using grep?

In order to search for a process you can use ps with grep. For example to search for firefox ps aux | grep firefox How to get the same answer without using grep?
1
vote
1answer
68 views

Terminal Doesn't go /home/username

When I type cd /home terminal goes there but when I type cd /home/myusername/downloads (or any address) terminal doesn't go there. It says no such file or directory. Can somebody tell me what causes ...
16
votes
3answers
1k views

“mv file” and now it's missing

In a terminal window, I typed: mv filename ..\.. [Note the wrong slash.] Now I can't find it. Gone. I ran some searches and looked through recoverable deleted files. Nothing. Poof. Serves me ...
3
votes
1answer
24 views

Can I convert a .dxf to .png or .jpg with a command tool?

I'm looking for some command line tool that allows me to convert dxf to any other format.
1
vote
1answer
29 views

How can I take a screenshot of an application running in a TTY without framebuffering enabled?

As the title says, I have an application that I need to run in a TTY. I also need to take a screenshot of it while it's running. How can I take a screenshot of an application running in a TTY without ...
1
vote
3answers
121 views

What is the syntax for IF/ELSE in bash?

I am trying to pull logs and doing few others things directly. written a small line BASH but not working. I am sure thats with IF Condition. sed -rne '/21:25:07/,/21:50:07/ p' ...
4
votes
3answers
199 views

How to use double substitution in awk?

To print the fields at 29th column in two files I used paste <(awk -F, '{print $29}' PreRefFile.csv) <(awk -F, '{print $29}' Txlog.csv) This worked fine. To print all the fields starting from ...
11
votes
1answer
503 views

Can I emulate graphical DOS applications inside a TTY?

Can I play DOS games inside a hard terminal (like the ones that open with Control+Alt+F1)? I want to be able to close the Xsession because the PC I'm doing this is on is really slow. The PC has ...
6
votes
2answers
49 views

Differences between “<command> & disown” and “nohup <command> & disown”

This is my understanding about the usage of &, disown and nohup: <command>: runs the process within the Terminal's current bash instance, in the foreground (i.e. the process is listed as a ...
-1
votes
2answers
36 views

When to use adduser or useradd [duplicate]

The Question consist of three parts What are the differences between them When to use adduser or useradd and why there is more than one command for the same purpose
8
votes
5answers
658 views

How do you make your terminal play a sound or offer a notification when it has finished executing its command? [duplicate]

I do sudo apt-get update from time to time, and find it frustrating to have to check when it is done doing its thing. Is there anyway I can get it to offer a notification popup or play a sound when it ...
2
votes
2answers
42 views

When one disables the root account via the terminal, what output can one expect?

When I used Ubuntu for the first time, my friends told me to enable the root account, and I enabled it. But, I know that I already reinstalled Ubuntu few times, but in this last time, I don't know if ...
1
vote
3answers
45 views

Get Parent ID of last process executed in terminal

back to this How do I find the PID of the last open file in terminal? I want to know the PPID (parent id of the process) of the last executed process.
3
votes
1answer
39 views

Find the properties of an mp3 file via command line

Is it possible, via command line (shell command), to check for properties of a file (like when I right click on a file via Nautilus). Specifically, given an mp3 audio file, I would like to know how I ...
0
votes
1answer
37 views

How do I find the PID of the last open file in terminal?

How to know the PID of the last open file (process) using the command line?
6
votes
6answers
292 views

Exit terminal after running a bash script

I am trying to write a bash script to open certain files (mostly pdf files) using the gnome-open command. I also want the terminal to exit once it opens the pdf file. I have tried adding exit to the ...
0
votes
1answer
22 views

How to compare float variables in awk?

awk -F, 'NR==FNR{c[$29]=$29;next} NF{print $29 ((c[$29]==$29)?" ":",mismatch")}' $file1 $file2 The value of 29th field, i.e., $29 in file1 was 832.9 and that of file2 was 832.9000. If I compare them ...
10
votes
5answers
920 views

How could I list all sudoers?

I want a command to list all sudoer users in Ubuntu 12.04. In other words, how could I list all users who have sudo ability? Suppose I'm a sudoer user. How could I know all other sudoer users?
0
votes
1answer
19 views

I seem to not have a terminal [closed]

I am not able to find the terminal, even when I press Ctrl+Alt+T, could it be because it didn't download with my OS? Or is it something else? I am running Ubuntu Unity, and this I am a newbie.