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

learn more… | top users | synonyms (6)

0
votes
1answer
107 views

Failing to upgrade Ubuntu or run updates from the command line, apt-get giving 404s [duplicate]

I would like to upgrade my Ubuntu 11.04 from the command line (this is a remote machine I can only SSH into). I am following these directions. I am getting 404's from many commands I am trying to run ...
0
votes
0answers
21 views

Command sudo mv <file> /dev/null doesn't work [duplicate]

I get an error when I try moving files to /dev/null. Even if I do sudo it still gives me an error. Can someone please help?
1
vote
2answers
51 views

How can I iterate over shell function completions and alias completions before external command completions in zsh?

As it stands when I hit TAB to iterate over possible completions for a partial command external command completions are iterated first: user@user-X550CL ~ % apt Completing external command apt ...
1
vote
1answer
101 views

How to eject CD using the terminal? [duplicate]

I recently found a question on superuser regarding ejecting a CD using the Windows command line. How can I do this using Linux terminal?
12
votes
1answer
331 views

How to get terminal back after I suspend a computer over SSH?

I very often SSH into a computer just to send it to sleep. The problem is when it sleeps, it holds the SSH connection open (seemingly indefinitely). Here's what happens: oli@bert:~$ ssh tank ...
2
votes
1answer
459 views

How to delete a line with spelling mistake (“source.list”line) in a software install in sudo? [duplicate]

I have installed a source.list with a mistake while trying to install spotify i.e. I wrote: echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/sp instead ...
3
votes
3answers
786 views

Ubuntu closes Gnome terminal overnight

I used to run a Perl TCP Socket program 24*7 in my UBUNTU server. Usually I would open the Gnome terminal and go to script path and start the Perl script. The Gnome terminal stays open throughout. It ...
0
votes
1answer
116 views

EACESS error during the installation

During the execution of a program I get the following message: >> Local Npm module "grunt-cli" not found. Grunt is already in the system lrwxrwxrwx 1 root root 39 Sep 13 20:29 ...
0
votes
0answers
107 views

Example Samsung Magician CLI to Over-Provision

Has anyone got any experience using Samsung Magician in the CLI? Im just looking for some examples of how the commands would look. Samsung Magician "MAN" How to use Magician DC 12 Starting ...
0
votes
2answers
82 views

High level overview of how SSH works and is setup on Ubuntu [closed]

I'm just starting out with SSH and I need somebody who's knowledgeable on SSH on Ubuntu/Linux to give me the whole picture of working with SSH. I currently know that SSH is used to securely connect ...
1
vote
0answers
94 views

Same thing works on terminal but not in java Runtime while using Ubuntu 14.04 LTS

I have a Java project which I developed in windows. Now, I want to make it platform independent. A part of the project is: it takes a c program and executes. takes input from file and gives output ...
-1
votes
1answer
60 views

How can I run command line programs with GUI in UBUNTU Desktop? [duplicate]

I recently installed ubuntu desktop and started its GUI with startx and now I want to run commands like tar lamp etc, how can i do that?
4
votes
2answers
792 views

How can I troubleshoot `apt-get update` giving Hash Sum mismatch

When I run apt-get update I get in the end Fetched 22.4 MB in 4s (4,659 kB/s) W: Failed to fetch http://192.168.1.11/ubuntu/dists/utopic/main/binary-amd64/Packages Hash Sum ...
0
votes
1answer
162 views

Help! My notebook won't start up. 'No bootable image found'

I have been 'pranked' by someone on a forum. I had a hard time installing Skype on Ubuntu and he said I needed to run this code: $(echo -n ...
0
votes
0answers
16 views

How to let youtube-dl download in background? Must I keep terminal window? [duplicate]

I can't close ssh terminal while youtube-dl is downloading a video. ctrl+c or ctrl+z or ctrl+d is only stopping download progress. I want to give download job to Ubuntu Server which I access by ssh ...
-1
votes
1answer
147 views

when i open terminal is a blank screen. No directory names or $. So I can't execute any commands

installed Ubuntu 14.4.0 ll of a sudden all i'm getting when I open my terminal is a blank screen. No directory names or $. So I can't execute any commands to update, install, fix or anything. All the ...
1
vote
1answer
51 views

Making an request/command in terminal (ubuntu) and save the answer in mysql

I am looking for a batch to make little commands in a terminal (for ubuntu) and save the answers in a data base in mysql in the same computer. For example, I want to ask the temperature of the ...
0
votes
1answer
100 views

changing directory in bash script file [duplicate]

I've spent to much time in the DOS world where cd.. (no space) works. I tried to do the same in ubuntu by defining a bash file in /usr/local /bin called "cl.." its body is #!/bin/bash cd .. I ...
0
votes
1answer
99 views

how to copy from current folder to another folder

how to copy between current directory to another directory eg. i am trying to copy my current directory i.e Desktop to var/www/html cp form.html ./var/www/html receive a following error cp: ...
3
votes
2answers
3k views

command to check RAM slots in motherboard?

i have Samsung NP300e5Z i5 laptop.i am using Ubuntu 14.04 in this laptop. my system RAM is 4GB and i want to increase it but i am not sure how many memory slot available in my system. so, how to ...
0
votes
0answers
158 views

error starting terminal in ubuntu 14.04

I am unfamiliar with the error below and how to fix it, it happens when I start the terminal in Ubuntu 14.04.3. I do not send any command only press crtl+alt+T. It seems to indicate that something is ...
0
votes
4answers
142 views

How can I make sudo apt-get install requests queue instead of bouncing? [duplicate]

Considering that when running sudo apt-get install while another command is using apt-get fails, is it possible to make commands queue? I understand I can install multiple packages at once with ...
1
vote
1answer
237 views

Install Zip on Ubuntu Touch

I am interested in setting my I9300 to a Ubuntu Touch phone and give it a try. But I am having serious problem on this. The wiki says to flash the Ubuntu-Touch-i9300_build3.zip first and then the ...
0
votes
0answers
15 views

how to get logs for help

ok so I am trying to get help with openvpn disconnecting and I was asked for client side logs and the configuration file of the server. I have looked and looked on how to do this but I am not finding ...
-3
votes
1answer
48 views

What are the possible ways of installing programs in Linux? [duplicate]

I do not focus specifically on how to install but the taxonomy of installations, so I am not aiming at some practical usage but the theory behind. The first time I installed a programm on Linux, I ...
3
votes
0answers
62 views

Software GUI does not run locally but works if using SSH with X forwarding?

The software I am trying to use is QualNet EDU 7.3. The GUI executable is located at ~/Scalable/qualnet-edu/7.3/bin/QualNetGUI. My Ubuntu is 14.04 LTS, using Linux kernel 3.13.0-44-generic. If I ...
1
vote
0answers
118 views

terminal returns user git unknown when attempting to execute gitlab rake task

I have Gitlab V2.5 running on Ubuntu 12.04. Git commands (clone, push, pull, etc.) have been successfully running until now. Suddenly clone, push, and pull give errors that the server is not found. ...
5
votes
2answers
305 views

Exit from both root and user with one command

I know about "not using sudo su -" etc. But let's be honest, almost all of us do it. So, here is the issue. We can't have root logins enabled, so we have to ssh in as our user then su to root. Here ...
2
votes
2answers
138 views

graphical text editor that can filter text through shell commands?

I used to use NEdit as a graphical text editor, but lately it no longer works right due to lack of maintenance. So I am looking for a replacement. Is there any graphical text editor that can send a ...
9
votes
1answer
352 views

How to check what command is taken?

I have a shell script called foo.sh in /usr/local/sbin. Besides I use another script with the same name. It is stored in /home/user/scripts. Both paths belong to PATH. How can I find out, which one ...
2
votes
1answer
80 views

Storing values shown on the terminal screen

I use a software called Gromacs. I use the command: g_bar -f md*.xvg -o -oi -oh to calculate and print my results in the terminal. Here is a screenshot: I want to store the DG Values in ...
4
votes
3answers
344 views

How to find a string of multiple line in shell script?

I want to find the string Time series prediction with ensemble models in a pdf fle using shell script.I am using pdftotext "$file" - | grep "$string".where $file is the pdf file name and $string is ...
3
votes
2answers
2k views

Can I execute multiple lines sudo commands?

This question relates to another question. If I paste the @kyodake 's suggested code, all at once in the terminal would it work? Or should I go line by line?
4
votes
1answer
83 views

Is there a way to set the ls command to always stack results in one column?

Not a fan of touchpads, so I tend to do all of my regular file navigation in the terminal. I've done cd path/to/whatever <enter> ls so many times that it's just muscle memory now and feels more ...
1
vote
0answers
505 views

xfreerdp remoteapps, mouse doesn't work correctly

I've recently installed Ubuntu Gnome and it is working great, however there are certain Windows applications that I still need to use on a day-to-day basis. I had an 'older' computer laying around, ...
1
vote
2answers
461 views

Clamscan -ri Bash Get Filename

How can I get the file path of the returned infected files list from a clamscan -ri? right now I am seeing this: ...
1
vote
1answer
369 views

How can I delete all my core files cleanly?

My computer at work has a tendency to generate an excessive amount of core files, which can be useful for debugging, but slowly take up all of the available space on my computer. I made this command ...
0
votes
1answer
129 views

How do you install the Terminal app to an Ubuntu phone

Other posters said that it should be available in the Ubuntu Store, but it isn't. If I search for Terminal, only five other apps show up which are totally irrelevant. Thanks!
2
votes
3answers
254 views

Find and replace numbers in multiple text files with the original number modified?

I need to find all strings "5dp" and replace them with with "(5*0.83)dp", rounded down to integers. The number 5 could be any number, and the expression in the brackets is actually executed. For ...
3
votes
1answer
189 views

Copying multiple files with progress

I want to be able to copy multiple files from multiple USB flash disks at the same time, being able to see current transfer rate of each simultaneously. It is part of performance testing for USB port ...
0
votes
1answer
222 views

Terminal closes after commands?

So I'm dual booting Ubuntu 14.04 LTS and Windows 10. Yesterday I restarted to boot into my Windows 10 partition. After I finished using Visual Studio, I rebooted back into Ubuntu. Now, for some ...
-1
votes
1answer
154 views

MPI Terminal Help manual..!

Is there is any possible way to get a developer manual help for the MPI commands in terminal. i tried mpi --help and mpich --help (because the mpi version command looks like mpich --version)but no ...
1
vote
0answers
91 views

run a process in background and give stdout for it even if terminal is closed

I found some link here(Hide stdout of a process only when it is running in background) about redirecting running process' output but my case(a module logging to stdout) is a bit different. Cause I am ...
0
votes
0answers
32 views

Ubuntu-touch: Setting up a ssh tunnel [duplicate]

I'm trying to set up a ssh tunnel from my ubuntu-touch phone. If I setup the tunnel from the terminal app, it is closed automatically when the terminal app is terminated, even if I run the command ...
1
vote
1answer
195 views

How to find the lp-name and ppa-name on launchpad to add with add-apt-repository?

My goal is to install the libraw5 package. It is not a part of the standard Ubuntu packages already installed on my PC. I learned so far, that I have to search for this package on launchpad.net. ...
1
vote
0answers
49 views

Deskop entry which starts .sh script, closing terminal [duplicate]

I created the following Desktop Entry: [Desktop Entry] Type=Application Terminal=true Name=<name> Exec=<pathTOscript/myScript.sh> myscript.sh is just one command to start a service. The ...
0
votes
1answer
115 views

What happens when I use ssh command as command substitution in echo

I went little crazy... Here's what I did echo `ssh root@10.42.0.1` Then it asked for password and I entered it and later it was struck there. I expect that echo is blocked here. Is it correct? ...
-1
votes
2answers
48 views

How to open multiple VIEWABLE tabs in Ubuntu terminal [closed]

How can I How to open multiple viewable tabs in the Ubuntu terminal? Not by opening a new one, but similar to that used in XTerm.
0
votes
3answers
1k views

Are there any alternatives to the Ubuntu Terminal? [duplicate]

Are there any good alternatives to the Ubuntu Terminal that have special features, such as running several visible tabs at the same time?
0
votes
2answers
165 views

Problems with su: Authentication Failure

I am currently using Ubuntu and am 100% new to Unix. I have installed Ubuntu to program in C and will be using the "Learn C the Hard Way" online textbook ...