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

learn more… | top users | synonyms (5)

0
votes
0answers
10 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 ...
3
votes
5answers
281 views

Where are commands `fg`, `bg` and `jobs` installed?

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
24 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
12 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
21 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
46 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
20 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
231 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
23 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
63 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
30 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
21 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
189 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
15 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 . Thanks
3
votes
4answers
102 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
21 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
18 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
402 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
27 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
120 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
498 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
35 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
651 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
44 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
288 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
911 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.
2
votes
2answers
211 views

How to output the linux command and the returned result in the same text file?

All the commands I've seen so far look like command > file or command >> file, which output the result to the designated file. For instance, when I type openssl version > lab4.txt, all I ...
0
votes
1answer
30 views

How to copy and paste a file through the command-line? [duplicate]

I want to copy and paste a file to /usr folder but I guess I need root access to do so so I need to learn how to copy and paste a file from one location to another through the terminal.
0
votes
1answer
25 views

.bashrc edit messes up terminal command arrow-up history print

I wanted to give my terminal prompt in Ubuntu a more personal look, and wanted to change the text prior to the '$' when writing a command. From what I've found this is done by editing the .bashrc ...
2
votes
0answers
45 views

/bin/sh: 0: can't access tty; job control turned off [on hold]

I'm building a custom image to run on a simulator. the kernel boots fine and everything but generates this warning: /bin/sh: 0: can't access tty; job control turned off and the terminal does not ...
4
votes
1answer
42 views

How to batch process JPG images to change its quality with Nautilus-Actions?

First of all: Thank you for taking the time to read this and provide some help. Any advices are appreciated. I am using Nautilus-Actions in order to add a custom context menu's action in order to ...
0
votes
0answers
116 views

/usr/bin/ld: cannot find -l

I wannt to install a program on my Ubuntu (Ubuntu 12.04) but when I type "make" in Terminal, it has errors: /usr/bin/ld: cannot find -lgeant321 /usr/bin/ld: cannot find -lkernlib /usr/bin/ld: cannot ...
4
votes
1answer
291 views

How do I completely clear a terminal window [duplicate]

The commands of clear, Ctrl+L, or reset are not adequate. They do not clear my terminal screen, they just seem to scroll the window down so I can't see everything above. I want it so that I can't ...
2
votes
1answer
40 views

How do you add/remove applications to/from the Unity Launcher from command line?

I am customizing an Ubuntu 14.04 Live CD with UCK (Ubuntu Customization Kit). The program gives you a chroot environment in a terminal to make changes. I want to add and remove what programs appear ...