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

learn more… | top users | synonyms (5)

1
vote
1answer
28 views

Ubuntu terminal scroll through suggestions [duplicate]

I'm trying to find a way to scroll through the suggestions made by the auto-complete feature in the gnome terminal. For example if I type sudo apt-get install xserver- and use double tab, there ...
2
votes
0answers
45 views

Changes made under command “su” disappeared after reboot

I installed Ubuntu 14.04 Desktop 32bit in VMWare. I logged in as a normal user lxw, and ran su command. Then I changed some files /root/.bashrc, /etc/rsyncd.conf, etc. When I rebooted this virtual ...
5
votes
8answers
663 views

How can I capitalize letters before a certain character? (^)

I would like to convert this: foo^bar ba^rfoo oofrab raboof^ To this: FOObar BArfoo oofrab RABOOF Anything before the "^" (or another special character if it makes it easier) gets capitalized ...
2
votes
1answer
28 views

Getting gnome-terminal to run tmux on start

I am trying to figure out how to get my gnome-terminal to launch run "tmux -2" on starting. I have tried modifying the Exec lines in the gnome-terminal.desktop file to Exec=gnome-terminal -e -tmux -2 ...
1
vote
1answer
21 views

Combine setsid with .bshrc alias or launcher

To run program X, I currently have to type path/to/folder/X in my terminal. I made an alias in my .bshrc so I can type X directly, and I have created a launcher so I can access X directly from my GUI. ...
-2
votes
2answers
34 views

Command to list only output files of gcc operation? [closed]

I have a directory with many c programs and some other files. After performing gcc -o output_name filename.c on c files i have respective output files in the same folder. What terminal command and ...
0
votes
0answers
56 views

find only works with sudo?

I've been searching for a while now and I can't find an awnswer to this. Let's assume I created this dir /Desktop/things and I want to find it using find. If I do find . -name things -type d ( and ...
0
votes
1answer
37 views

Anyway to get full bash working on Windows? [closed]

So I love the Linux CLI environment and I like to use bash for almost every task I can. For some reasons too long to explain, I'm leaving my Ubuntu 14.04 LTS to move to Windows 7. I have heard there ...
2
votes
1answer
63 views

How do I change color profile via terminal commands?

I frequently change color profiles from the color settings. I would like to set an alias for convenient switching between color profiles e.g. D50 to D55 and switch back. Does anyone know how to ...
0
votes
0answers
30 views

Zentyal mailserver blocked new user cration more than one. So how to active unlimited?

Sorry, an unexpected error has occurred root command openchange_newuser --create --enable --mail techmgr@bharattesthouse.com 'techmgr' failed. Error output: params.c:pm_process() - Processing ...
2
votes
4answers
118 views

Parse lines with specific pattern out of file

I have a file that looks roughly like this : [25]:0.00843832,469:0.0109533):0.00657864,((((872:0.00120503,((980:0.0001 [29]:((962:0.000580339,930:0.000580339):0.00543993 ...
5
votes
2answers
38 views

Why using the '-execdir' action of find command is insecure for directory which is included in the PATH environment variable?

As title shows, why this is insecure to using the combination of -execdir action of find while using -exec is'nt? When I want to run the below command I'm getting the following warning/stop: ...
3
votes
1answer
62 views

Can't Use 'start' command in 15.04

I used to be able to start and stop processes in Terminal with sudo start or sudo stop Example: sudo start ttyS0 This would start a getty so I could log in from a serial terminal. It doesn't work in ...
3
votes
6answers
499 views

command to find files by searching only part of their names?

Say there are files with names: batman.c batwoman.c batgirl.c cricketbat.c What command and how should I use it to list all these files by using the searchtag bat?
3
votes
2answers
45 views

Automatically doubling the value of numbers in a string in multiple files

I'm trying to modify Java source code in numerous .java files that contain strings similar to this: private static final Height biomeHeight = new Height(0.1F, 0.2F); There are over 75 and I'd like ...
6
votes
6answers
623 views

Problem with spaces in file names

I want to do something repeatedly on a list of files. The files in questions have spaces in their names: david@david: ls -l total 32 -rw-rw-r-- 1 david david 13 Mai 8 11:55 haha -rw-rw-r-- 1 david ...
0
votes
2answers
25 views

How can I quickly re-enable fn shortcuts that stopped working?

On 15.04, sometimes (fairly often) my fn shortcuts stop working. The problem is in the OS, they are still able to change brightness, but no notification is displayed and I cannot change the volume ...
0
votes
1answer
35 views

How to change the color of stdout content?

I need to change the output color of stdout in terminal, That means I need to show the outputs in colored contents. For that I have tried like this. Bhuvanesh: May$ tput setaf 3 ; ls ...
3
votes
6answers
305 views

Use bash to extract number from between square brackets

My file looks like this: [581]((((((((501:0.00024264,451:0.00024264):0.000316197,310:0.000558837):0.00857295,((589:0.000409158,538:0.000409158):0.000658084,207:0.00106724 ...
2
votes
2answers
23 views

Remove vim indents when I paste directly from system clipboard

I have a problem with vim when I paste something it puts them in by placing in each newline. How can I set default settings of vim.
0
votes
0answers
43 views

How to enable compiz d-bus plugin on command-line in 15.04?

I would like to enable the compiz d-bus plugin on the command line. Graphically, using ccsm it is easy: just open it and click on the checkbox. How can I do the equivalent on the command line? There ...
0
votes
2answers
70 views

Shell script I made is ridiculously verbose, and also is probably inefficient. Help!

I am new to Ubuntu, and so far have done several things I am quite proud of: Made an apache webserver with my own html (before a week ago I had never touched it) Made a stratum mining server +titcoin ...
-1
votes
1answer
39 views

Command to delete a file? [duplicate]

The title says it all. I am trying to write a shell script that deletes a persistent but unnecessary folder in my home directory upon execution. So, I ask you fellow Ubuntu users, what is the terminal ...
0
votes
1answer
22 views

install application using output of antoher application [closed]

I would like to use output of command: foo@bar:~/baz$ git remote add origin git@bitbucket.org:foo/bar.git The program 'git' is currently not installed. You can install it by typing: sudo apt-get ...
1
vote
1answer
19 views

Dynamically add new Terminator section for new program

I'm using something similar to a shell script that launches multiple pieces of software, each piece needing its own terminal for output (specifically, I'm launching multiple ROS nodes from a roslaunch ...
0
votes
0answers
30 views

Printer Share via Terminal

I've configured a printer share in Ubuntu and used Samba to share it with Windows, following this page. Every thing is working fine, but I have a couple of questions. Can I configure the Ubuntu ...
0
votes
1answer
59 views

Ubuntu terminal: How to change ctrl + c (interrupt) to something else?

I'm using Ubuntu 14.04 LTS with Unity right now. I've changed my copy and paste keys to Ctrl + C and Ctrl + V respectively. The command I've used is this: gconftool-2 -t str -s ...
1
vote
0answers
24 views

nc command: conflict between different Ubuntu machines

I am using Ubuntu 14.04. Then I have an Ubuntu 12.04 machine running on virtualbox. On the virtual box machine I listened on port 12345 using the command nc -l 12345 And on the host machine, I ...
1
vote
0answers
23 views

Ubuntu freezes and crashes on startup and nothing works [closed]

I've been trying for days to fix this. I thought it might have been my graphics card, but nothing happens when I try to install it from the command console. All Ubuntu has done for me so far is freeze ...
2
votes
1answer
35 views

Programs opening but not visible [duplicate]

OS: ubuntu 14.04 LTS Processor: Intel® Core™2 CPU 6320 @ 1.86GHz × 2 Graphics: Intel® 965Q OS type: 64-bit I have spent about a week researching a solution to my problem, which only occurred after ...
0
votes
1answer
75 views

Terminal access to AquarisE4.5 from Linux Mint [closed]

I just got my first linux phone today, and wanted to hook it up to my laptop and start messing around through terminal. But I can't seem to be able to get in touch with it. From what I've read so far, ...
1
vote
1answer
25 views

Secure Shell isn't propery loading .bashrc

I've got a seemingly simple issue - I have a 15.04 server that I connect to via ssh. Currently, I have a couple of folders added to my PATH environment variable in my .bashrc file: #... (rest of ...
13
votes
2answers
870 views

How to enable suggestion if command not found (“did you mean…” feature) in “bash” shell?

Similar to this question: How do I remove the "did you mean..." feature in the shell? When mistyping a command you get something like: root@pc:~# sido No command 'sido' found, did you ...
1
vote
2answers
41 views

Ignoring files while updating

I did the following commands: sudo rename 's/\.list$/.list.disable/' /etc/apt/sources.list.d/*.list sudo apt-get update sudo aptitude -f install libgl1-mesa-dri:i386=9.2.1-1ubuntu3 ...
1
vote
2answers
41 views

Why can't I delete a folder in my trash?

So I downloaded a "cracked" version of Minecraft. STUPID, I know and understand the dangers. Anyway, the download put a folder called "minecraft" on my computer. it contained a .png and a .jar file. ...
1
vote
1answer
161 views

Run multiple line as a single line command bash

Is there any way to run multiple line as a single line command in bash script. This is my multiple line bash script id=15; if [ $id -ge 30 ] then echo Successful echo $id else echo fail echo $id fi ...
1
vote
2answers
55 views

How can I know which file is being used in a bash for loop?

I have a very tricky question that I have been wanting to tackle for quite some time. If $line is from $(cat foo), then do action1 If $line is from $(cat bar), then do action2 for line in $(cat ...
2
votes
0answers
23 views

.desktop file to pass arguments received to Exec [duplicate]

I have a desktop file with this contents: [Desktop Entry] Name=Mozilla Firefox - default Type=Application Comment=Web Application Exec=/usr/lib/firefox/firefox ...
0
votes
1answer
33 views

I can not execute .bin file in a external usb

One moth ago I install cmap tools in my home folder, but now I want to install cmap in my external usb. I always install cmap.bin in my home folder using this command: chmod +x file-cmap.bin but ...
1
vote
2answers
28 views

Command to get the module that manages my Network Interface card?

I am looking for a command that would show me which module is responsible for managing my network interface. When I use the commandcat /etc/modules this is what I get an empty file.
3
votes
2answers
239 views

Ubuntu Terminal: C program (or other solutions) to kill processes running on a specific port and start xampp [closed]

Can anyone help me? The program's objective is to kill the processes running on port 443 and to then start xampp automatically. What I've done: #include <stdio.h> #include <stdlib.h> ...
3
votes
2answers
124 views

How move the biggest file in each subdirectory to current directory?

I like to loop though subdirectories and move the biggest file to its parent and then delete the folder. I have tried many things but never got it working correctly. It says that mv cant find the ...
1
vote
1answer
37 views

Clickable file that adds code in terminal and runs it automatically?

As my wi-fi driver is doing a bit weird I need to add codes into the terminal everytime I restart my PC to use Wi-Fi. I get that opening the terminal and typing in two lines of code isn't that much ...
2
votes
1answer
23 views

antlr4 alias not persisting

I'm trying to set up Antlr 4.5 as per the instructions here but the alias isn't accessible from where I've put my project after a reboot, which makes me wonder if I've done the classpath step ...
0
votes
1answer
32 views

Ubuntu on Android? [duplicate]

I want to install Ubuntu on android via Ubuntu CLI. I have Mobile A910. I just want to know that if I install Ubuntu in android, and if it will not installed properly or not working properly then ...
2
votes
1answer
64 views

sudo password in terminal not accepted

Assuming my login password is the one being referred, I cannot type that, or in fact, anything when password is requested. I read through the answer to an earlier question on this problem and tried ...
1
vote
3answers
263 views

split large file in bash

How can I pass all files in a list.txt which looks like file1_1.txt file1_2.txt file1_3.txt file1_4.txt to the split command (there are other txt files in the dir) and make it return the parts ...
1
vote
4answers
52 views

Add terminal output at the bottom of a text file [duplicate]

I am using: command > ~/Desktop/file.txt My problem is that I need to execute this command multiple times, and each time It will give me different outputs, in this moment each time I run it It ...
2
votes
1answer
30 views

Connect netbook to mobile internet via sim

I have a HP mini 210 running ubuntu. My netbook has a sim slot and thus I want to connect it to mobile internet. How can I do so?
1
vote
1answer
56 views

script sh syntax error [closed]

I have this script: #!/bin/bash IP='192.168.1.1' fping -c1 -t300 $IP 2>/dev/null 1>/dev/null if [ "$?" = 0 ] then echo "Host found" else echo "Host not found" fi When I try to run it, ...