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

learn more… | top users | synonyms (6)

20
votes
4answers
1k views

Reading lines from a text file and creating a text file for each name on each line

Let's say I have a text file like: john george james stewert with every name on a separate line. I want to read the lines of this text file and create a text file for each name, like: john.txt, ...
1
vote
1answer
66 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
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 ...
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 ? ...
3
votes
1answer
56 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.
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
1answer
8k views

when building u-boot /bin/bash: arm-none-linux-gnueabi-gcc: command not found

I am currently running Ubuntu 12.0.4 on a 64 bit machine. I have an AM335X development board. Along with the kit came the compressed kernel (linux 3,2), rootfs, u-boot, and ARM cross compiler ...
1
vote
1answer
21 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
17 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
31 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? [closed]

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.
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 ...
2
votes
2answers
163 views

sed to execute a command as replacement with substitution pattern as argument

I am trying to replace time in a log file by: cat mlog.log | sed -e "s/^[0-9\.]*/\$(date -d @&)/" Why it always first execute $(date -d $&) but not doing replacement at first and then ...
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
0answers
22 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
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
1answer
31 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
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
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 ...
1
vote
2answers
46 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). ...
0
votes
0answers
15 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
1answer
73 views

How to validate a user's password, with a shell script? [duplicate]

I'm making a bash script for the Ubuntu Terminal. I need to verify the user before the code can continue. How do I ask and validate their existing log-in password?
1
vote
1answer
20 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 ...
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 ...
8
votes
2answers
28k views

Install GNU Scientific library (GSL) on Ubuntu 14.04 via terminal

I am trying to install GSL libraries on Ubuntu 14.04 via terminal. I searched on Google but I couldn't find any command which can install it from the terminal but just through the Ubuntu software ...
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 ...
8
votes
4answers
6k views

How to convert LaTeX equations to SVG?

At the moment, I'm using mimetex to automatically convert a bunch of equations into gif-images. The program is fast, but the images look pretty bad: How can I (quickly) convert a LaTeX equation ...
0
votes
1answer
79 views

Copy file with smbclient and path to directory

I'm stuck in NT_STATUS_BAD_NETWORK_NAME error but can't understand what I'm doing wrong. My objective: copy a file from ubuntu to windows in a simple command line to be called by php. The problem: ...
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
2answers
33 views

Create a script to move files that ignore errors

I can move files in the terminal easily enough. I have a whole mess of stuff submitted by students daily and it'd make my life a lot easier to have one thing I can run of an evening that'll move all ...
2
votes
3answers
39 views
0
votes
3answers
4k views

i just upgraded to ubuntu 15.04 but i cant launch the terminal

the question says it all i just cant get into the terminal and I've tried the control alt t thing to it still wont pop up please help !
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 ...
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
2answers
54 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 ...
2
votes
1answer
779 views

What start up scripts are executed when a terminal is opened in Ubuntu?

When I open a terminal, it says cannot execute the binary file and the output is something like this, bash: /home/sandeep/bin/uname: cannot execute binary file bash: [: =: unary operator expected ...
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
8answers
5k views

Is it possible to use wget for copying files in my own system?

I want to move/copy large size of files in my own system, and I want to use wget command with its -c switch to having a resumable transferring. The copy(cp) or move(mv) commands doesn't provide this ...
0
votes
2answers
5k views

Change or Assign a Drive Letter to an external hard drive (or any drive)

I have an external hard drive that I formatted with Ubuntu (using the Gnome Disk Utility aka Disks) as an NTFS file system. Most of my computers in the house run Linux but I have a house mate using ...
3
votes
3answers
5k views

Transmission shutdown script for multiple torrents?

I have written a shutdown script for transmission. Transmission calls the script after a torrent download finishes. The script runs perfectly on my machine (Ubuntu 11.04 & 12.04). #!/bin/bash ...
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
2answers
47 views

How to display the group-memberships for every user of the system?

I need a command that displays the system’s users and groups from /etc/passwd and /etc/group. For each user I want to display the username, UID and all groups the user is a member of. I tried cat ...
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, ...
17
votes
3answers
22k views

How can I (from CLI) assign multiple IP addresses to one interface?

On my server I want to assign several IP addresses to one NIC, but without using the deprecated ifconfig or the obsolete "alias" notation (like eth0:0) in /etc/network/interfaces because in IP ...
8
votes
3answers
4k views

How do I get a list of running applications by using the command line?

I want to list only running application like: Firefox, gedit, Nautilus, etc. using the command line. Note: I don't want to list all running process, only applications which are running (say manually ...
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, ...
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 ...