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

learn more… | top users | synonyms (5)

2
votes
1answer
86 views

Adding my launcher to the Unity Launcher automatically. How?

Based on official documentation: In order to add your launcher to the Unity Launcher on the left, you select and drag it onto the Launcher panel. Alternatively, you can place your .desktop ...
4
votes
3answers
231 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. ...
9
votes
4answers
4k views

How to display time elapsed since last system boot using “uptime”?

I want to display the time elapsed since last system boot using uptime, but I don't want it to display all that info. I just want to know how many hours passed since last system boot (i.e. : 18:17:59) ...
4
votes
1answer
55 views

How to reset errornous font in promt and output of gnome-terminal

I'm experiencing replacement of all occurances of certain characters in the prompt and output of gnome-terminal (3.6.2 in Ubuntu 14.04), e.g. (latin d is replaced with some kind of uppercase D in ...
1
vote
2answers
186 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
1answer
19 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
41 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.
2
votes
2answers
4k views

How do I list word count in multiple files?

Say I need to find out how many words are in each file that have the word 'work' in it. I know that to find files with 'work' in it, it would be ls work. And to figure out the number of words it ...
2
votes
1answer
38 views

How to display completed print jobs with source URL

In the "view queue" GUI of my printer, I can click "show all completed jobs" and get the columns Job|User|Document|Printer|Size|Time Submitted|Status I hunted around for some way of doing this in ...
0
votes
0answers
27 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?
4
votes
6answers
131 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 ...
3
votes
3answers
97 views

Can I call a .cpp program in Bash?

I am new in Bash programming. I want to call my C++ program in Bash file. My program is myProg.cpp: #include<iostream> using namespace std; int main() { cout<<"Salam! ...
5
votes
3answers
3k views

How to find files between two dates using “find”?

I have an email account that has passed 60GB of emails, and currently I'm having a lot of trouble using an email client to archive emails of last year (2011). Via terminal, I am trying to use find to ...
1
vote
1answer
24 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 ...
2
votes
2answers
2k views

14.04 Not authenticating on chsh command

I am trying to change my default shell to zsh. I have the entry placed correctly in /etc/shells file. Each attempt I have made with this command has ended with the same error message: chsh -s ...
4
votes
3answers
76 views

Use Results of Find Command to Call vi

Is there a way that I can pipe the output of this command (assuming there is only one file found) to vi. I want to find this command, and then call it up in vi. Thanks. find . -name 'id.properties' ...
0
votes
2answers
1k views

How to delete to trash via terminal (with mv command)? [duplicate]

I would like to know how can I delete a file and/or move it to trash with mv command? I know where the trash located is, then I tried with this commands to move it to trash: mv somefile ...
11
votes
2answers
1k 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 ...
0
votes
3answers
2k views

Command to run GUI Frontend for apt-get update

I want know, if there is any command to run apt-get update in GUI like in the picture following: All i want to do is to write a script which will update the software sources through this gui ...
0
votes
0answers
10 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
28 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 ...
2
votes
1answer
26 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 ...
8
votes
1answer
2k views

apt-get stuck at 0 [Connecting to us.archive.ubuntu.com]

When I do upgrade it gets stuck here: user@plato:~# sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done ...
3
votes
2answers
139 views

ubuntu machine had postgresql folder blown away manually - can't install or remove any packages

i have a machine where a user deleted their postgresql folder from the command line in an attempt to uninstall postgres. now when we try to install any other packages - even unrelated ones - we keep ...
0
votes
2answers
74 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 ...
0
votes
1answer
37 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 ...
3
votes
3answers
112 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, ...
3
votes
2answers
39 views

Turn off colour while using script(1)

Is there a way to turn off colour while using script(1)? My script file is being filled with unnecessary information regarding colours from commands such as ls. This information is only visible when ...
1
vote
1answer
128 views

How to disable terminal fullscreen padding

When I run vim at full screen mode in gnome-terminal, actually it is not really full screen. There is a little padding on the right and bottom, with the terminal background color. You can reach the ...
3
votes
1answer
1k views

Generating a single LaTeX file by merging different LaTeX files

I have a main LaTeX file which inputs many other LaTeX files i.e. for example \documentclass{article} \begin{document} \input{input1.tex} \input{./Input_folder_1/input2.tex} \input{input3.tex} ...
7
votes
5answers
18k views

Is there a text editor for the command line that uses the same keys as Notepad on Windows?

I'm used to work in Windows environment and are used to the commands in Notepad e.g. CtrlS for save, CtrlC for copy and so on. On Ubuntu it's handy to work directly in the command line, e.g. as with ...
1
vote
1answer
29 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 ...
1
vote
1answer
122 views

Help running FightCade application?

I'm new to Ubuntu and trying to get the application FightCade (fightcade.com) up and running. I followed the directions in the readme file, but have run up against a wall: I used the terminal to ...
20
votes
3answers
11k views

How to show ascii art at the top of the terminal when it's opened?

As you can see on this screeshot of Mik's Guake he have a statup message of ascii art when he opens it, and that's what I'd like to do, can someone help me?
4
votes
1answer
142 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 ...
3
votes
1answer
126 views

How can I determine which fonts are installed from the command line, and what is the easiest way to install more?

There are many questions and answers regarding fonts on Ubuntu, but not so many dealing with Ubuntu for Embedded Linux, such as Beaglebone Black. I have not been able to locate any .ttf files in ...
0
votes
1answer
171 views

Start phablet-shell connection to Ubuntu Phone

I see in a few places [1,2,3] that I can securely connect from my Ubuntu desktop to my Ubuntu phone using the command phablet-shell from the phablet-tools package. Yet, from a terminal on my desktop, ...
5
votes
4answers
329 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 ...
1
vote
1answer
35 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 ...
3
votes
1answer
46 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 ...
61
votes
6answers
61k views

How to create a permanent “alias”? [duplicate]

If you create an alias for example: alias cls="clear" It exists untill you kill terminall session. When you start a new terminal window the alias doesn't exist any more. How to create "permanent" ...
2
votes
1answer
29 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 ...
1
vote
0answers
21 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
24 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 ...
0
votes
0answers
8 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 ...
17
votes
5answers
130k views

How do I remove a folder?

I'm a new user and Im trying to remove a specific folder. I am using sudo rm /path/ but its not working. What is the correct command to use? It is a file catolog I am attempting to remove but im ...
6
votes
5answers
10k views

cron.daily jobs not running

I created 3 daily cron jobs to run. Below are the three that are placed in etc/cron.daily rkhunter.sh #!/bin/sh ( rkhunter --versioncheck rkhunter --update rkhunter --cronjob --report-warnings-only ...
4
votes
2answers
128 views

How to keep terminal for installation of debugging symbols of apport's local investigation alive?

apport allows to investigate crashes locally and to either start a gdb session, get a backtrace or install debugging symbols in that local investigation. When choosing the latter a gnome-terminal is ...
13
votes
1answer
617 views

opposite of eject command?

I have a ton of CDs to image, and I just got curious. I can eject with the eject command. What command inserts the disk tray back into the CD drive? yes it is the type that can pull the tray back in. ...
0
votes
1answer
46 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 ...