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

learn more… | top users | synonyms (6)

0
votes
0answers
18 views

YAML Error when running juju quickstart

I've seen there was a bug that was fixed in a previous version, but it appears I'm running into something similar in juju version 1.24.7 as well. I've added maas config to environments.yaml, but keep ...
0
votes
1answer
32 views

batch “convert” into jpg with nice alpha flatten

I would like to batch resize and convert to jpg a few png files. But some pixels are transparent, and some are half transparent; I would like the transparent ones to be white, and the half-transparent ...
2
votes
3answers
385 views

Isn't sudo extremely unsecure? [duplicate]

It seems any program ran soon enough after sudo in the same terminal can run any sudo command it pleases. Proof: Execute sudo ls in a terminal . Then run this program (compiled of course) in the same ...
-1
votes
0answers
37 views

bash: /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh: No such file or directory and bash

bash: /usr/local/bin/virtualenwrapper_lazy.sh: No such file or directory Is showing up each time I start the terminal. I installed virtualenvwrapper, by using: sudo pip install virtualenvwrapper ...
0
votes
0answers
32 views

which dependencies am I missing for Corsair water cooler Link driver?

I'm attempting to install an open-source linux driver for my Corsair h100i GTX water cooler. I'm following these instructions. Once I run the script or try to change setting through terminal I get ...
-1
votes
0answers
46 views

Copy multiple folder and overwrite

i have two folders: /test1/film1/filmnew.mkv /test1/film2 /test1/film3 /test2/film1/filmold.mkv /test2/film4 /test2/film5 Now i want to copy all folders from test1 to test2. If the folder not ...
0
votes
1answer
34 views

How do I run an executable in a directory I added to PATH?

I added a directory to my PATH by doing PATH=$PATH:~/Documents/Clang but when I type ./clang, Bash says No such file or directory. Why is that?
1
vote
1answer
20 views

When does script invocation require path/script.sh

I distinctly remember reading that when $PATH does not include the working directory Linux script invocation requires the path even if the path is ./ and so the script invocation is ./script.sh ...
0
votes
1answer
18 views

Why can't my non admin users use mlocate command?

I have a node.js software agent running on 14.04 not able to run many of his bash scripts on a new server. The problem I seem to have is the limited user returns nothing from the locate or mlocate ...
1
vote
0answers
32 views

Are there any basic templating preprocessors that I can use for nginx configuration files?

I've been using nginx variables to simplify my templates for a few years now. It turns out this is apparently a "rather slow" way of doing things and that my static configuration should be static. ...
3
votes
2answers
132 views

ies4linux installation is failing

Unfortunately I need to install and use IE...I'm using that guide given here. But from terminal when I try so launch using ./ies4linux I always obtain this error: The program 'ies4linux-gtk.py' ...
4
votes
3answers
188 views

How to start or kill tasks when the core temperatures goes above/below a specific value?

I would like to write a short script that gets launched manually once and then should: run a command if all temperatures are below x °C. pause the command if any temperature rises above y °C. ...
0
votes
1answer
21 views

rsync without deleting between 2 folders

i'm looking for a command that can sync dir1 and dir2, without swapping and deleting the files in those directories. The current command i'm using is rsync -av --delete dir1 dir2 which deletes ...
0
votes
1answer
33 views

How to copy clone folder to remote computer in one line?

I have two machines with the same folder structure. One is my personal computer, the other is a remote computer. Sometimes I want a program to run on the remote computer. At the moment I always need ...
-1
votes
2answers
85 views

How can I fix this update error [duplicate]

W: Failed to fetch http://ug.archive.ubuntu.com/ubuntu/dists/trusty/restricted/source/Sources 403 Forbidden
3
votes
2answers
28 views

Parametric command line player

I am looking for command line mp3 or ogg audio player with ability to play section of file, like: .... playfrom=145s playto=185s .... The aim is to listen just the interesting part of audiorecording. ...
4
votes
2answers
305 views

How to start nautilus maximized from command line?

I can easily start Nautilus on a particular directory from command line: nautilus /home/nico/Documents But I want that Nautilus window to be maximized. How to write the command line? nautilus does ...
1
vote
2answers
32 views

How do I use `sed` to strip the version information of a list of packages?

The result for example of a search is a list > /tmp/lista.txt: vlc-2.2.1-195.1.x86_64 pidgin-2.10.11-4.3.x86_64 qmmp-1.0.5-78.1.x86_64 spotify-client-0.9.17.8.gd06432d.31-1.x86_64 I'm using: cat ...
0
votes
2answers
44 views

update-alternatives arguments - <link> and <path> can't be the same

I want to add vimb to the default browsers in x-www-browser. I don't see it in update-alternatives --config x-www-browser, so I think I have to --install it. After some time spent in reading man ...
1
vote
0answers
67 views

Bash shell doesn't display Python output

I started using vim + tmux for my programming and suddenly after accidentally smashing couple of keys [Forgive me I am a klutz] the bash shell started acting weirdly. When I run my unittest written ...
1
vote
1answer
54 views

how to move the cursor to previous lines which begins with > in bash?

When I copy and paste below code into bash, every line begins with > symbol; like: cat >hello.c <<"EOF" #include <stdio.h> int main() { printf("Hello World\n"); return 0; } EOF ...
0
votes
0answers
26 views

No such file or directory when trying to install printer driver

Hopefully not wasting anyone's time asking this. I'm trying to install a driver to connect to my wireless Brother printer. The download is from here. I have creates a folder called 'printer' on the ...
0
votes
0answers
21 views

Control a script that runs at start-up through SSH

So I have a server running that runs a few scripts automatically at start-up. They run a few programs that allow you to execute commands from them. This has been going fine but now I am wondering if ...
1
vote
1answer
35 views

Unwanted uninstall with apt-get install

I accidentally pressed Enter instead of Tab I had this line in command line: sudo apt-get install gstreamer0.10- I tried to auto-complete with Tab and instead I hit Enter and I ended up with a lot ...
-2
votes
1answer
23 views

How can fix “Unable to lock the administration directory (/var/lib/dpkg/), are you root?”? [duplicate]

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
0
votes
0answers
38 views

How to edit shell script?

So basically I'm trying to resolve a login loop with out .Xauthority. On another one of my questions, someone answered: sudo nano /etc... I did the first command, it opened up a giant menu that I ...
3
votes
1answer
34 views

What is the use of the Grave/Backtick ( ` ) character in man pages?

This askubuntu question identifies/locates the " ` " key on the keyboard, and discusses its use in window switching. This question addresses the use of backticks for the shell. However, why is the ...
0
votes
2answers
40 views

Using expect for inputting commands

Heres the thread I'm bouncing off of: Inputting input in a command? So I'm trying to run this command: cd /etc/openvpn/easy-rsa; . ./vars; ./build-key username However, after running that command, I ...
1
vote
1answer
29 views

Meaning of “b” and “c” in file privileges description (output of ls -l)

Basic question regarding the ls utility. What do letters "b" and "c" mean at the beginning of the 10-symbol code describing the item privileges ? From what I understand, when typing ls -l, the ...
0
votes
1answer
49 views

Inputting input in a command? [duplicate]

I'm running a command through a program that needs to create an OpenVPN account. After putting in this line to start making the account: cd /etc/openvpn/easy-rsa; . ./vars; ./build-key username I ...
1
vote
1answer
59 views

Bring BackSpace back to nautilus (3.18+) once and for all!

With regards to this question, the solution provide to get backspace for going back in nautilus does not function any longer. I would like to know if there is a functioning workaround for nautilus ...
3
votes
1answer
52 views

I ran these commands and want to learn how to reverse them

Please don't scorch me i'm still novice and only seeking help. I ran the following commands: echo "deb https://pkg.tox.chat/debian nightly release" sudo tee /etc/apt/sources.list.d/tox.list wget ...
0
votes
0answers
22 views

Desktop is missing

My laptop goes to the terminal window(just after booting) where I need to log in. Not the typical GUI login window. After logging in, I am still in the terminal. Not showing the desktop. I tried ...
0
votes
0answers
12 views

Why does second terminal tab prompt bundle install

If I run rails s in the terminal, it works. If I open a new terminal window or tab and run rails c I get the following error: Run bundle install to install missing gems. If I run cd .. and ...
0
votes
1answer
41 views

Display the name of all files with home directory which is smaller (in size) than 10 KB but bigger than 5 KB

Display the name of all files with home directory which is smaller (in size) than 10 KB but bigger than 5 KB. using Linux comand. pls help me
1
vote
1answer
29 views

is it possible to recover bad blocks?

I have a 500Gb Internal HDD and from dmesg's output i got this "wonderful" news: [ 324.434832] end_request: I/O error, dev sde, sector 4715026720 [ 324.434838] Buffer I/O error on device sde1, ...
0
votes
0answers
20 views

Terminal Crashing on Ubuntu Mate

I was messing around with terminal preferences thinking I knew what I was doing and now when I open Terminal it opens then closes out. I know there is a way to reset the preferences using CTRL+ALT+F1, ...
-1
votes
1answer
27 views

why dmesg output to log file is not working?

I am trying to output the dmesg to a log file so I can look at it through my txt editor, but i keep getting an error msg: dmesg > /Desktop/log.txt gives me this error: bash: /Desktop/dmesg.log: No ...
1
vote
4answers
73 views

How to delete files with the same extension in one go using rm?

I had compiled many C programs together, and each of the file had a .gch created. Now I did not want the .gch files so I decided to delete them. But it would take lots of time using rm for deleting ...
3
votes
2answers
100 views

Reverse column output with sort command

I have to sort all of the words from a file given as parameter in a shell script. Here is the one-liner: tr [:space:] '\n' <$1 | sort -nrk2,2 | uniq -c |sed 's/^ \+//g' Basically, if I have ...
0
votes
2answers
49 views

How to improve my ubuntu knowledge? [closed]

I know this question may seem off-topic but... I've been using this site for many months now and I wonder how professionals became what they are? If there exist a specific way to learn about what ...
0
votes
1answer
44 views

Mass Editing files with 'sed' or similar with different lines

Let's say I have the following files: /etc/dir1/file.txt /etc/dir2/file.txt /etc/dir3/file.txt ... all the way up to dir100 (100 directories), every directory has file.txt. And I have the ...
0
votes
0answers
12 views

Cordova is not installed properly

I am trying to install cordova on ubuntu after installing cordova i given a command like this in terminal. cordova -v But the command prompt is not return anything what is happening here any ...
3
votes
1answer
306 views

What does this sequence ../.. mean in command line?

I don't know how to interpret some_command ../... What does ../.. mean?
0
votes
2answers
95 views

How to remove a directory which is not empty? [duplicate]

I've been trying to erase (remove) a directory from one of my internal HDD and the system tells me that "The directory can not be removed because it is not an empty directory." The issue is that the ...
-1
votes
2answers
43 views

Pulling a particular block from a text file

I am trying to pull out a block of data from a huge text file which contains 1193373557 lines. I am excluding the first 25 lines and the last 4 lines, and the more challenging job is that the ...
1
vote
2answers
41 views

Everything but ssh does not connect over the internet

I am having trouble getting my Ubuntu server to connect to the internet. To be clear, LAN works perfectly. I am running 14.04 LTS. I cannot ping Google.com yet ssh works over the internet as well as ...
1
vote
2answers
28 views

`tail` and append in oneliner

How could I tail and append a text in a file, in one line, in Bash? My failed attempt would be tail file.txt > file.txt && date >> file.txt
1
vote
1answer
28 views

Why can not the Bash script file run by shortcut get the content of a file?

I have a script that starts a new activity for hamster (activity tracker). This is my current script: ACTIVITY=`zenity --entry --title "Enter new activity name" --text "New activity name:"` hamster ...
0
votes
0answers
13 views

What is the best way to handle multiple ips safely on a single Ubuntu server?

Previously, I used to add virtual interfaces when I needed to to have multiple ips on a machine. Now, I need to a sign 29 ips to a single machine and virtual interfaces just doesn't seem like such a ...