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

learn more… | top users | synonyms (6)

0
votes
2answers
41 views

How to write a recuring bash script

I created a program that requires a sequence of command line instructions to scrape new information and update the databases. Is there a way to automate this process so I don't have to type all this ...
1
vote
2answers
33 views

Execute a command stored into a $variable

I made a script where I wrote: COMMAND="/usr/bin/exiftool $PATH_NAME" .... code .... $COMMAND The variable $PATH_NAME is assigned dynamically inside a while loop. The command works fine until it ...
1
vote
1answer
54 views

Ubuntu Desktop Not Loading Correctly After 16.04

I recently upgraded my system from 15.10 to 16.04 using the do-release-upgrade command. The upgrade failed for an unknown reason and now the Ubuntu Desktop does not load. I get my desktop wallpaper ...
0
votes
0answers
20 views

Need help with Bucket Brigade Script [on hold]

I want to write two scripts, brig and passer. The brig fire n command starts a fire with a n size. The brig status command displays the status of the fire. The brig quit command just exits the fire ...
0
votes
0answers
39 views

Disable the color of certain kind of 'ls' entries selectively [duplicate]

Since upgrade to ubuntu 16.04 I have this annyoing background behind names of some files/dirs, like here on 'spec' dir: I would like to disable backgrounds as they made output non-readable. Is ...
-1
votes
0answers
25 views

Typing $ in the command line on Google Chrome [on hold]

I am following a course on codeacademy about the basics of the command line but when it says "type echo $USER" I can find no way to type that $. I have tried copy paste it, I have tried to write the ...
0
votes
0answers
51 views

java not found when running Ubuntu 16.04 desktop snappy app

When running this script from within a Ubuntu 16.04 desktop snappy application I get the message /usr/bin/java not found. Also, the application does not create the files and folders in my Documents ...
0
votes
1answer
29 views

Openvpn - Terminal blocked after starting connection

i have a little Problem with openvpn. I want to establish a VPN connect with open vpn, then get a file from an FTP Server and than close the connection. The VPN and the FTP are working fine. But if ...
0
votes
0answers
9 views

live cd koha and dspace configuration problems

How to configure live cid of dspace? It is my headach to configure and customise it? when i tried to configure dspace.config.cf and sav close ,dspace generates 502&503 erorrs? how to solve it ? ...
2
votes
1answer
30 views

How to run a parameter as an alias in a shell script?

I have an alias alias ll='ls -lF'; I created a bash script temp.sh: #!/bin/bash # Allow aliases to work in bash NON-interactive mode! shopt -s expand_aliases # .. and load them source ...
1
vote
1answer
47 views

How do I check if a set of commands are executed on startup? [duplicate]

I'm in the process of creating a GUI-frontend to xrandr, and I need some commands to be executed on startup. I'm using a .desktop file placed in ~/.config/autostart. I can't tell if this will work, ...
3
votes
1answer
53 views

Create directories from textfile

I have a text file named checklog.txt. I want to create directories from that names in the text file line by line.
3
votes
1answer
53 views

Auto dimming laptop keyboard backlit when idle

On Windows 10, my laptop's keyboard backlit automatically turned off after a minute or so of inactivity. As soon as any activity occurred, they turned back on. On ubuntu, if I run the following echo ...
0
votes
1answer
11 views

nginx start (question about how to cope with linux reference manuals)

Ubuntu 14.04 Could you help me understand what does this difference mean. I'm trying to cast a look at nginx (a web-server). I would like to start it. It starts automatically, but I have stopped it. ...
1
vote
1answer
16 views

How to install brackets.io from the command line?

For some reason the gnome installer that handles .deb packages on my system is not working. I'm not concerned. How would one install the Brackets.io program from the terminal?
0
votes
1answer
16 views

How can I make pasting work like yanking?

If I press ctrl+y (yank) in some programs, then the program will output what's in the clipboard to the current selected screen area. But why doesn't it work from the terminal? I would like a more ...
0
votes
2answers
30 views

gcc doesn't do anything when trying to compile a code [duplicate]

I'm new using Ubuntu OS, I've Ubuntu 12.04 and I'm trying to run a simple Hello world C program #include <stdio.h> int main(){ printf("Hello world!"); return 0; } When using gcc --version ...
0
votes
3answers
46 views

What is -f command and what does it do? [on hold]

I Googled it and nothing came up which is weird, because I got the code to instill Chrome. So, what does actual does it do.
15
votes
10answers
4k views

Linux without graphical OS but with graphical resources

My first computer experience was with a Commodore. I would like to have Linux computer work similar to that. I was wondering if it was possible to have something similar using Linux. What I would ...
1
vote
1answer
62 views

How do I run a command using libertine-container-manager exec

I can see in the documentation for libertine-container-manager (that's libertine-container-manager -- help) That the exec option should be able to execute an arbitrary command. I can't however get it ...
2
votes
1answer
20 views

echo create command, what's it doing?

I've been trying to figure out what this line does for a few hours. I have to automate the step using ansible and can't find anything on the create command. Any help is appreciated. echo -e "create ...
0
votes
1answer
21 views

Input parameters in a curl command [on hold]

I am writing a sed command with an input parameter. But I need my input parameter to accept an entire sentence, not just one string. Here is what I have so far. How would I change the $1... sed -i ...
1
vote
1answer
88 views

How can I copy all files and folders from one directory to another with similar structure with `find` and `xargs`?

For example, I use find command find /usr/share/icons -iname 'foxitreader*' find the files: /usr/share/icons/hicolor/32x32/apps/FoxitReader.png /usr/share/icons/hicolor/48x48/apps/FoxitReader.png ...
0
votes
0answers
19 views

Batch file to read file contents and iterate

I am trying to write a batch file/shell script that reads the contents of a file, matches those contents with a directory structure and invokes an executable file. Let's say there is a sequence.txt ...
0
votes
0answers
29 views

Make world writeable files and directories colored normal in terminal

I have three partitions on my computer, one for windows, one for Linux (Ubuntu 16.04), and one shared between the two OS, formatted in ntfs. I mount the shared partition on startup and created a soft ...
0
votes
0answers
19 views

How to show/display status of the current command in terminal?

Whenever I execute a command in the terminal, I have to wait and or open some log file to see what is happening right now. Is there a shortcut or other helpful trick to display the status of the ...
0
votes
0answers
21 views

Trying to add a repository in order to make facebook work with Pidgin

I am trying to add a repository, having issues in following the first step given in the document "https://jgeboski.github.io/#package-repositories" I do not understand whether I need to add ...
0
votes
1answer
30 views

I accidentally deleted usr/lib/python3.4 and now I'm having some problems, how can I fix this?

(This is not a duplicate of Accidentally deleted /usr/lib/python3.4, the errors I get are different.) Today I accidentally deleted usr/lib/python3.4, now Ctrl+Alt+T is not working anymore, terminal ...
0
votes
0answers
17 views

Writing system settings from command line (no GUI)

I would like to build a script that modifies in bulk a series of system settings on Xubuntu, like: - setting screen background to solid black - hiding automatically taskbar panel - extending desktop ...
0
votes
0answers
18 views

Escaping in Bash [duplicate]

I want to do a POST with curl for a DNS entry, but the quoting/escaping drives me crazy. I tried the following in Bash (which I want to transfer to a Bash script once it works): curl -k -u $USER -X ...
0
votes
0answers
8 views

“tput reset” and “reset” suddenly stopped working?

I've got a laptop running Ubuntu 14.04, and often use reset to completely clear the terminal. I've just installed some updates (just the regular "Software Updater" updates), and suddenly these ...
0
votes
0answers
12 views

Display offset in terminal?

I am not new to linux, but I haven't messed with ubuntu in a few years. I just recently installed it and my login shell terminals (tty, i.e. the ones you push ctrl+alt+F1 to access) are not displaying ...
0
votes
1answer
16 views

How to stop this command from exit-ing the terminal

I'm working with building tarballs, and in order to estimate how long other builds will take I need to time the first one. However, every time I try to time this command, the terminal exits as soon as ...
2
votes
3answers
36 views

How to copy complete content on terminal to a text file using commands ?(Not for one output but everything on terminal)

How to copy complete content on terminal to a text file using commands .
0
votes
0answers
17 views

Running MySQL database browser GUI from lampp

I have followed the instructions in the How to start xampp GUI and get the following error when I type in the terminal: sudo /opt/lampp/share/xampp-control-panel/xampp-control-panel Error importing ...
1
vote
1answer
14 views

Write edited contents of file to stdout

I need a visual text editor that can be used as follows - the example will not work but illustrates the point. gpg2 -d x.gpg | gedit -w - | gpg2 -e -o x.gpg This command will allow me to decrypt a ...
2
votes
1answer
43 views

How to permanentaly unlock partitions from launcher in 16.04

I tried to unlock partitions from launcher, but it keeps appearing after every reboot. Is there any good way to permanently remove partitions from launcher? This is happening only on Ubuntu 16.04
1
vote
1answer
19 views

how to replace 3rd row in a file using sed?

I need to change a variable in a file using a bash script, i think sed is the way to go but i can't figure out the regular expression. I have tried replacing a character in the file but then ...
1
vote
2answers
76 views

Can I run a small web server from a custom directory? [duplicate]

The question may not be clear, let me explain: I develop websites using Symfony and there is a clever little command that allows me to start an apache server, taking the root of the server as the ...
0
votes
0answers
9 views

Homebrew mysql question

I am trying to install mysql via homebrew but once it starts downloading it stays static at this screen: (I left my computer there the whole day hoping it will finish but nothing happened). Any ...
0
votes
1answer
21 views

Getting to root [duplicate]

I've checked the question archive and can't find an exact answer to the following. I have just installed Ubuntu on a new PC. While I'm fairly proficient in lumbering about in MSs operating console, ...
0
votes
0answers
22 views

List of open applications in ubuntu [duplicate]

I am using gnome shell and I have just update to ubuntu 16.04. Some gnome extensions are not [yet] compatible and especially one I used: dash-to-dock which allow to display a side bar with favorites ...
-1
votes
0answers
14 views

Blocking unwanted sites from the server [closed]

am aware it's possible to block sites,bt my question is...is it possible to block sites on a server serving more than 25 clients without repeating the process on all 25 client Pcs.
1
vote
0answers
17 views

Python in terminal- Trying to use ''erase'' and it writes more

im really new to both Ubuntu and trying to learn to use python. Ive just installed python. When i start python in terminal "python3.5" my keys are adding more when i try to erase text. When i try to ...
1
vote
2answers
44 views

vim.desktop - changes lost when terminal exits

I was thrilled to notice a GNOME launcher for vim in the vim-common package after I upgraded to Ubuntu 16.04, since it offers an alternative to gvim (a solid app, though not perfect for my workflow). ...
1
vote
2answers
52 views

Can I use the terminal to move images to specific dir's using the images 'tag'?

I have a huge folder of images that I've collected over the years that my students use for coursework. It started off with about twenty images so I didn't really bother with file names or any kind of ...
1
vote
1answer
119 views

Can't upgrade to 16.04 / autoremove having issues

Alright, so for a while now, 15.10 has kept me from updating. It would say there is too much things in my boot folder, so I would use sudo apt-get autoremove in the terminal to get rid of them. Today, ...
1
vote
1answer
18 views

Error message on launching ubuntu 15.04, Ubuntu error message on Command line when launched and Unable to update or inst

I get an error message on Ubuntu 15.04, I'm unable to install anything and When I open my command line this error pups up. bash: /home/lea/.bashrc: line 1: syntax error near unexpected token `(' ...
0
votes
0answers
14 views

What will be the usage of the command “unity -v” in ubuntu?

I upgraded my ubuntu 15.04 to 16.04,in which I used to type the command unity -v in the terminal. All applications got terminated and my system got blinks at me.Still ,the terminal is running and I ...
0
votes
0answers
28 views

Error while running apt-get

I ran apt-get command on terminal and I came across this error message: E:Encountered a section with no Package: header E:Problem with ...