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

learn more… | top users | synonyms (5)

2
votes
1answer
33 views

how to use find command with -exec?

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 ...
2
votes
3answers
119 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() { ...
3
votes
0answers
36 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 ...
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
35 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
23 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?
2
votes
6answers
108 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
92 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 ...
0
votes
2answers
46 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
1answer
20 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 ...
1
vote
1answer
20 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 .......... .......... ...
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 ...
1
vote
3answers
35 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
750 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
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
23 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
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 ...
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 ...
1
vote
2answers
78 views
+50

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
63 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
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 ...
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, ...
3
votes
2answers
38 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
125 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
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 ...
1
vote
1answer
100 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 ...
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 ...
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
139 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
118 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 ...
8
votes
6answers
479 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 ...
0
votes
1answer
157 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, ...
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 ...
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 ...
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 ...
61
votes
6answers
60k 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
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 ...
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 ...
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 ...
16
votes
5answers
128k 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 ...
-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 ...
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 ...