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

learn more… | top users | synonyms (5)

4
votes
3answers
135 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
20 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
20 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
107 views

help me with If condition

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. Please help me. sed -rne '/21:25:07/,/21:50:07/ p' ...
4
votes
3answers
175 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 ...
9
votes
1answer
468 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
37 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 ...
-2
votes
2answers
28 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
620 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 ...
1
vote
1answer
30 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 ...
0
votes
3answers
37 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
34 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
5answers
245 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 ...
8
votes
5answers
834 views

How do 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
18 views

I seem to not have a terminal [on hold]

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
201 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
26 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
22 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
29 views

/bin/sh: 0: can't access tty; job control turned off

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
41 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
66 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
285 views

How do I completely clear a terminal window

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
36 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 ...
0
votes
0answers
16 views

How to run a script when a directory is changed by another user?

I know has been a bit of discussion about topics similar to this. But here is what I am basically trying to do. I have a watch directory called and whenever a file is added to that directory, I want ...
4
votes
3answers
222 views

How to make an icon to enter terminal commands

Let me start by saying that I'm very new to Ubuntu in general, so I realize this may be a basic question. I'm using xubuntu 14.04. I recently got a wireless usb working by following the steps here. ...
0
votes
1answer
15 views

Problem installing Terminology terminal emulator

When trying to run/install Terminology on Ubuntu 14.04 I get the following error symbol lookup error: /usr/local/lib/libecore_evas.so.1: undefined symbol: _eina_log_state_shutdown I guess the ...
1
vote
1answer
40 views

Terminal commands for volume [duplicate]

I have a very simple question: What is the terminal command for changing the volume? I ask because I want to set a keyboard shortcut via the keyboard settings and I need the terminal command for it.
1
vote
2answers
171 views

“find: missing argument to `-exec'” when using “-exec rm -f {}\”

I run this command: ~/shell_temp$ find . -type f -name "IMAG1806.jpg" -exec rm -f {}\ i got output below: > IMAG1806.jpg Error: find: missing argument to `-exec' what is exact command for ...
0
votes
0answers
26 views

Installing Missing Commands [duplicate]

I am trying to learn linux commands and one particular thing I could not seem to find was; say a command like "split" is missing, how would you install it?
5
votes
1answer
39 views

How do I restart a wget download?

I use the wget application. One file has stopped downloading. How can I stop the download and start the download again? Here's the log for wget $ tail -f wget-log 287350K .......... .......... ...
1
vote
1answer
23 views

bash file for managing public private and history of website

I have a website and i have 3 versions I have the beta version with the most recent and usually not fully working changes. I have the public site that is on www. lastly, i have the history that I ...
0
votes
2answers
51 views

Moving folders in Terminal [duplicate]

I'm trying to move a folder into another folder in terminal, but when I enter this line: mv South_America /North_America South_America just completely disappears. It didn't move into the ...
3
votes
6answers
124 views

How to search for specific lines in Linux? [duplicate]

I recently received an error telling me that there was a problem on line 52. I am trying to learn what the best method is for finding lines instead of actually counting them. In Windows, I often used ...
0
votes
0answers
7 views

'LIBXML2_2.9.0' not found (run PHP-file with shell_exec)

I wrote a PHP-script to execute another PHP-file in the terminal and got an error. If I run: $output = shell_exec("/usr/bin/php -v 2>&1"); echo "<PRE>$output</PRE>"; then I get ...
0
votes
1answer
25 views

how find the list of programs installed using the command line and how to get uninstall them [duplicate]

I have installed the ubuntu 14.04.2 LTS recently. I have used the terminal to install some music packages. But i dont no how many music packages that i have installed.So can any one help me with the ...
0
votes
1answer
30 views

how to set socks5 proxy in the terminal

I am a beginner using linux, I would like to connecting the terminal to the local proxy socks made by my ssh (Dynamic Port Forwarding), so is there a way to set up a proxy socks5 in the terminal? or ...
5
votes
1answer
80 views

What do these commands from a shell script do?

I'm just starting to learn bash. I have the following script, and I would like to know what does the following commands do in order to start to understand a little bit this world. if [ ! -w "." ] ...
1
vote
3answers
44 views

mv command with *-wildcard shows error “No such file or directory”

I have 6 .txt files on my desktop that I am trying to move using the Terminal. However when I try to mass move them all into the texts folder that is on my Desktop, I get the the following error: mv: ...
11
votes
2answers
920 views

What does this 'apt-get remove' instruction do?

What does the following code do? I found it on internet so I copied it and pasted it into terminal but when I installed a new kernel it only detects the old one. sudo apt-get remove --purge $(dpkg ...
3
votes
1answer
75 views

Can't see my files with “ls” anymore

HELP! I think I broke my DESKTOP :/ I was playing around with the Terminal and trying to practice moving, renaming, and copying files when I think I screwed something up. I was attempting to move ...
1
vote
1answer
25 views

How to change default browser AND the command line parameters used to open a link from gnome-terminal

I basically have the same question that was answered over here: How do I change the browser that gnome terminal opens links with? Except I am running on Ubuntu 14.04 and am interested in customizing ...
4
votes
1answer
141 views

Writing a program that will demo the $PS2 variable

I've been customizing my terminal prompt, and found that it's possible to change the "secondary prompt". However, I have no way to test the changes I make to this one so I was wondering if a simple ...
1
vote
1answer
33 views

How do I get nohup to execute [double-]quoted inner commands?

Let's say I want to run echo nested into watch nested into nohup. Starting from the bottom of the stack: echo test No problems with that. watch -n 1 'echo test' watch -n 1 "echo test" No ...
2
votes
1answer
24 views

No polish signs in terminal

I have changed my .bashrc file, so that $LANG variable is always set to en_US when I run new shell. This is because I have a program for making plots which takes the sign as a decimal separator based ...
1
vote
0answers
20 views

all my previous configurations and settings are gone by using the following command in ubuntu 14.04LTS

I used the command rm -rf ~/.Trash/* to empty the trash but when the command is executed, all my files in Download folder are deleted and all my Ubuntu settings are changed. Can anyone please help, ...
0
votes
2answers
21 views

why i why i can't kill viber?

i cant kill viber process in terminal. $ pkill Viber or $ pgrep Viber 2849 $ kill 2849 or $ killall -v Viber Killed Viber(2849) with signal 15 not work ! but in System Monitor by ...
11
votes
6answers
610 views

Most efficient way of launching and separating a program from the terminal?

I'm trying to launch a program from the Terminal in such a way that the following occurs: Closing the Terminal does not close the program The program is not outputting anything to the Terminal and ...
4
votes
4answers
312 views

Get previous commands in Terminal that match the currently typed command [duplicate]

In some terminals you can do something like this... Type some command nmap -sn 192.168.1.1/24 Then go on to do other things in the terminal for a while. Then later you can type nmap and then ...