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

learn more… | top users | synonyms (5)

0
votes
1answer
41 views

How to use the terminal on Ubuntu 14.04 to connect to remote bluetooth device?

I would like to connect to a Bluetooth device remotely running on Bluetooth Classic, not BLE. This is easy if I can use the UI. For some reason, I would like to use the terminal to do the connection. ...
12
votes
3answers
1k views

Torrent content in Linux

How to view/explore a torrent file content using command line in Linux. I know I can use GUI such as transmission or qbitorrent .... This how you can obtain using transmission This picture is just ...
4
votes
2answers
61 views

Why my bash-script doesn't work with cron?

I created a bash script to automatically update my Ubuntu Server. Here is the script: #!/bin/bash apt-get update apt-get upgrade echo "Update am $(date "+%d. %m. %y|%H:%M:%S) >> ...
4
votes
2answers
305 views

How to get a basic script to run on startup

I've created a basic script for me to input into Terminal every time I restart my computer so it'll update the repositories, upgrade the apps, and then fix my external monitor resolution. It looks ...
2
votes
1answer
53 views

How to define gateway for 192.168.1.1 as 10.0.0.x with `route add`?

Let's say eth0 has an ip 10.0.0.10 and its gateway is 10.0.0.1. I want to add a route for 192.168.1.1 to use this interface. What is the difference between these 3 commands? route add -host ...
1
vote
4answers
103 views

bash shell script

How do I write a bash shell script that requests the user's name, verify that it exists and, if it does, show the following information: Username: xxxx User ID: xxxx Group ID: xxxx Shell: / bin / xxx ...
1
vote
3answers
141 views

How to list users with UIDs higher than 10?

What commands can I use to display all users who have an identifier (UID) that is greater than 10?
3
votes
2answers
31 views

insert text into program

I'm fairly new at using the Terminal and Im trying to figure out how to open a program (say Safari) and insert text into the search box. I already know how to open safari using the terminal. I just ...
1
vote
2answers
36 views

What does `cat passwd | awk -F':' '{printf $1}'` do?

What does this command do? How do I see that in the terminal because I don't have anything when I write cat passwd | awk -F':' '{printf $1}'
0
votes
1answer
49 views

Lost “Open terminal here” on upgrade from Kubuntu 14.10 to 15.04

In Kubuntu 14.10, the option "Open terminal here" was available in Dolphin's Actions menu. When I upgraded to Kubuntu 15.04, this option disappeared. How can it be restored?
0
votes
1answer
98 views

Open Terminal at Startup and run Java application

Here am I again after successfully installing Ubuntu MATE 14.04 with the help of AskUbuntu (thanks a bunch!) What am I trying to achieve now is the following: Launch a Terminal with root privileges ...
2
votes
0answers
32 views

Starting Process in Background without terminal does not work

I want to start the modelsim programm for linux with a *.desktop file. First I start the program with the script in the installation folder: ./vsim and it is starting. There are a messages on ...
1
vote
0answers
21 views

sed single qoutes, double qoutes, delimeters [duplicate]

I am confused a little bit. I would like to swap 2 directory in the apache2 config files with the sed program. APACHE_CONF=/etc/apache2/apache2.conf FULL_DIR=/home/$USER/new ...
1
vote
3answers
29 views

How do I direct a file to be stored in a different folder?

So I'm trying to direct a file to be created in another folder (let's say on my Desktop) from my bin directory. I made a text file with all the files in the directory using ls > textfile but this ...
0
votes
1answer
66 views

ls discrepancy with du df output

Adding up the sizes of files and directories returned by ls gives a different value than that given by df or du. The df and du commands give me the same output, so I don't have that frequent problem, ...
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
44 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
660 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
26 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
19 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
33 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
51 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
35 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
51 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
27 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
33 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
56 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
489 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
621 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
19 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
298 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
22 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
36 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
69 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
33 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
18 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
29 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
56 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
21 views

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

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
73 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
853 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
40 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
40 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. ...