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

learn more… | top users | synonyms (5)

1
vote
1answer
17 views

wget application

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
19 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
3answers
45 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 ...
1
vote
7answers
96 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
6 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
21 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
13 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 ...
1
vote
3answers
34 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: ...
10
votes
2answers
747 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 ...
2
votes
1answer
60 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
19 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
138 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
31 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
19 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
19 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 ...
8
votes
6answers
476 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 ...
3
votes
4answers
269 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 ...
0
votes
0answers
7 views

The disk drive for /u01 is not ready yet or not present

when i boot i see this message The disk drive for / is not ready yet or not present. Continue to wait, or Press S to skip mounting or M for manual recovery. i want solution to remove this message and ...
-1
votes
0answers
24 views

My terminal disappeared not for a reason xD [on hold]

I have installed linux 12.04 come with my O.S. And i go to do operations type install programs with sudo command using the terminal. But not for a reason that i know the terminal disappeared. Also ...
2
votes
0answers
28 views

Configure Linux Text mode Size (Rows and Columns)

I'm having issues with controlling the size of a text-mode program. This is a database program (Dataflex) that I recently had working on Windows 98 DOS mode and now am moving it to Linux. I have ...
0
votes
2answers
60 views

Enforce a shell script to execute a specific python version

Update. Changing the alias unfortunately does not work. I have changed the alias to alias python='/usr/bin/python2.7' however the shell script still runs the python script in 2.4.3. Muru - I am ...
2
votes
1answer
19 views

Xresources not working properly after restart

I am trying to change my xterm theme using a hack in Xresources which i found in this website. i have created a Xresources in my home dirctory and entered the below code. XTerm*faceName: Bitstream ...
0
votes
0answers
22 views

I need to install f.lux and I think I may have hit a road block.

I was wondering how to get out of this situation where I can't seem to respond to the Terminal's question. See image for info. It keeps asking if another process is using it, because it is unable to ...
0
votes
1answer
22 views

Grep/egrep not working correctly?

I seem to be using grep incorrectly. Observe: > hg log <filepath> | egrep changeset changeset: 3961:9dedc55e030a changeset: 3651:d23495ab1168 changeset: 2974:6aa71cb2c575 changeset: ...
3
votes
1answer
44 views

How to run a single command multiple times while changing one word in the command each time it is run?

I've got a command like this: grep word1 file.txt | grep word2 | grep word3 I want to be able to run this entire command multiple times while changing the value of "word1" each time. I have a file ...
1
vote
0answers
17 views

Terminal GDM session

How would I create a session file so that when I login using GDM it just launches a terminal session (No windowing, just a plain terminal like in Ubuntu Server)?
1
vote
2answers
28 views

Folder permissions changed [duplicate]

I have very specific questions regarding permissions. I have delved into the FilePermissions Wiki - https://help.ubuntu.com/community/FilePermissions Recently I installed an ecommerce open source ...
0
votes
0answers
27 views

dd command problems [on hold]

This is my problem. I am trying to dd command a kali-linux-1.1.0a-amd64.iso to a usb drive. This is what I do, and what pops up: root@LBS-Aspire-1100:~# dd if=kali-linux-1.1.0a-amd64.iso of=/dev/sdb ...
0
votes
1answer
41 views

Why does this apt-get command work in one context but not the other?

I'm trying to add the plpython package to my docker container (running an Ubunutu image) using the following command (RUN being the docker command that you can ignore if you don't know Docker): RUN ...
1
vote
4answers
84 views

Error when running script in bash

I wrote a script in bash to basically create aliases, but for any reason, it doesn't work in some cases. Here it's the code: #!/bin/bash #Script to create unique and permanent aliases _add_alias() { ...
0
votes
1answer
31 views

why google chrome shuts down after closing the terminal?

I have to use Google chrome while running the terminal in the background. In fact if I press ctrl+c it shuts down with the Google chrome too. Why is it happening? Is there any way I can resume Google ...
0
votes
3answers
37 views

How to copy folder as root in Lubuntu 14.04 terminal?

I am trying to copy the b43 folder into the /lib/firmware folder. I know I asked this before, but this is on a completely different OS. I can't seem to launch nautilus using sudo nautilus or gksu ...
1
vote
2answers
26 views

Why won't XScreensaver install from the command line?

All I know is that I get the following output in my terminal: supuhstar@SupuhComp-U:~$ sudo apt-get install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra xscreensaver-screensaver-bsod -y ...
0
votes
0answers
13 views

How to make a “clean wineprefix” in a terminal?

I'm trying to install wmp10 through Wine so I can use the digital library accessing programme Overdrive. (Installing wmp10 through PlayOnLinux doesn't enable the DRM that allows Overdrive to work, ...
0
votes
3answers
51 views

Get current ssh session's originating IP without being superuser

I am trying to find out the current ssh session's originating IP address. I found the following to be useful, but it requires sudo: $ sudo netstat -tapen | grep ssh | awk '{ print $5}' | sed ...
1
vote
5answers
63 views

How to check which processes are still active after a user session has logged out

I am needing to do some debugging work, and as a part of that debugging work I need to know if there are any processes still running after a user session has logged out. And I need to specifically be ...
3
votes
3answers
109 views

Closing all instances of Terminal at once, cleanly

I am trying to find out how to close all windows of Terminal (quit all instances of gnome-terminal) at once, cleanly. By "cleanly", I mean that it doesn't just simply kill all the instances at once, ...
1
vote
1answer
39 views

How to remove all lines in a file containing a string from another file

I want to remove all lines in a file containing a string from another file. So I don't want to remove the lines which are identical, there are none, but remove all lines if they share a string from ...
3
votes
2answers
42 views

Reinstall Ubuntu 14.04 from the terminal window

Any Code to put in the terminal that will bring back the settings to original ???
1
vote
0answers
23 views

Use package without declaring its version

I have installed g++ from here. When I want to compile a program, I have to use g++-4.9 myle.cpp. How can I set it to use without declaring its version g++ myle.cpp?
0
votes
0answers
25 views

softwares installed from source code not starting

I had an older version of code::blocks and I thought I'd update it so I downloaded code::blocks 13.12 source code and installed it from the terminal with these commands: ./configure make sudo make ...
1
vote
3answers
57 views

Edit text iteratively within a file using commands

I am a new Ubuntu user. Please help me in solving the following problem: My input text file is -0.716425 -12.8939 -3.3341 -7.38497 -2.62709 3.00437 -6.69861 -13.8853 -5.81095 -7.37465 ...
5
votes
3answers
335 views

Amendable console output in Python

Some programs are able to amend console output, wget easily comes to mind. How can I do that in pure Python? I know IPython has clear_output(). I tried that but even that does not work. And I would ...
0
votes
0answers
11 views

Transcode raw avi to another format [on hold]

Hello this is my first post, and I'm sorry if it doesn't have a lot of needed info behind it. On a windows pc I took some old 8mm video and captured it to a raw avi format as I didn't want to lose ...
4
votes
2answers
213 views

How to trace/monitor the I/O of a Linux command

I ran find / -name abc.html and a short time after I ran this command again. This time it was very fast, so I know the find must be caching the result somewhere. How can I find out where the cache is ...
0
votes
1answer
16 views

cannot get to command line on my ASUS 1015E running Trusty

My ASUS 1015E (netbook) has as its OS UBUNTU 14.04.2 LTS (Trusty Tahr). Yesterday, as it ran the weekly updates to the OS and my applications, I lost power, and it died mid-update. Now I have NO ...
1
vote
0answers
25 views

speech-dispatcher always stop working after terminal exit?

In a previous question I made this line: trap 'clear; ~/ascii3.sh; spd-say "Exit"; sleep 2' EXIT The content of ascii3.sh is: echo -e "\033[01;31m" echo " _ _ __ _ _ ____ __ __ _ ...
0
votes
1answer
9 views

How to make speech-dispatcher work with variables?

I tried some bash variables with spd-say command just like the date variable spd-say $date or spd-say "$date" but didn't work with me. So how to make it accept variables?
-1
votes
1answer
20 views

How to stop renaming a file which was already renamed using loop in shell script

I have a directory name dir1 containing another directories named 1,2,3,4,5. Now I want to rename directory 1 with 4, 2 => 5, 3 => 6, 4 => 5. but my problem is using mv command in shell script ...