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

learn more… | top users | synonyms (6)

0
votes
1answer
19 views

How do I save terminal output from multiple commands to one file?

I am running a command like this: geocode 'New York, NY' --provider google; geocode 'Chicago, IL' --provider google; geocode 'Portland, OR' --provider google when I use > geocode.txt it only ...
0
votes
0answers
6 views

error in installing MHN server on ubuntu 16.04

I'm just a beginner and I'm trying to install MHN server. During the installation process, I got this error. error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/lib/...
0
votes
0answers
15 views

Google chrome and other programs doesn't work

I'm using Ubuntu 14.04. And I have some programs like "Atom, Brackets and Google chrome..." doesn't work. And when I opening one of then it doesn't open and sometimes I showing report problem form ...
0
votes
0answers
11 views

Mounting OneDrive on Ubuntu Linux command line

For some requirement, I need to mount OneDrive instead of Syncing files through onedrive-d. Also, I need need a command line solution to automate something in my scripts. Can anyone help on this ? I ...
-1
votes
1answer
23 views

Make CLI App in Ubuntu [on hold]

I want to make a CLI program which a user will install and will use the commands to perform some tasks. Any suggestions , external links or any duplicate question please provide them
0
votes
0answers
12 views

Kubuntu 16.04 shutdown and restart issue

I'm tyring to close or restart my Kubuntu 16.04 both from UI and CLI. For CLI I'm using sudo shutdown -r now or shutdown -P now For both above cases and from the UI sometimes my desktop ...
0
votes
6answers
54 views

How to paste a code to terminal and execute it line by line? (it has sudo)

When I paste to terminal the following code: wclean; sudo bash; wmake; It asks for password for sudo bash, then I have to type it (no problem). But it doesn't keep going. It stops before wmake. ...
0
votes
1answer
23 views

Making my computer talk (with the say command)

I've been using the say command in terminal to get my computer to talk, ie. say "Hello" How can I pipe the text of a .txt file to the say command to get it to read aloud the text in a file ?
0
votes
2answers
16 views

While installing Android Emulator (SDK) I am having an issue with the /opt directory

While installing the Android Emulator (SDK) by following this tut and applying these commands: $ cd /opt $ wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz $ sudo tar -zxvf ...
1
vote
1answer
12 views

How to switch between GNU Terminal windows with a keyboard shortcut?

I m using Ubuntu 16.x version, Just wondering if there is a short-cut to switch ONLY between different terminal(GNU) that I use ?
0
votes
1answer
17 views

How do I refresh GT5 every X amount of seconds?

I'm using the terminal GUI program GT5, which is a "du -browser". I want to have this program either automatically refresh every 30 seconds, or run every 30 seconds, quit, then repeat. What is the ...
2
votes
3answers
26 views

Merge video files via command line?

Is it possible to merge two (or more) video files from the command line? In Windows, one could do this: copy /b VTS_01_1.vob + VTS_01_2.vob + VTS_01_3.vob + VTS_01_4.vob Output.vob I find this to ...
0
votes
0answers
29 views

Ubuntu is not updating by update manager

I have installed Ubuntu 14.04 32 bit several days ago. Then I started update manager and installed a lot of updates... Since then the update manager shows only that "the software on this computer is ...
0
votes
1answer
11 views

what is the accurate command_line for deleting a folder in /usr/local? [duplicate]

i was unsuccessful for installing jdk8 and i want to delete the java folder in my usr/local. cd /usr/local rm java error :rm: cannot remove ‘java’: Is a directory rmdir java error :rmdir: failed to ...
0
votes
0answers
15 views

How to copy files and use ctrl+v to paste them in Thunar/android studio/eclipse

I hope do following: - make screenshot and save it to /tmp - copy it in cli - paste(ctrl+v) in ide or gui file explorer the full steps like this video I hope use cli instead of copy in Thunar(file ...
0
votes
0answers
23 views

Stuck on a bluetooth problem

I've recently installed ubuntu 16.04 LTS twice -and i discovered that the problem was from the tool katoolin so i didn't install it- after i installed ubuntu the bluetooth didn't work for me. P.S:the ...
0
votes
0answers
18 views

Manual proxy configuration through terminal does not work

I am having trouble configuring manual proxy through terminal. I have used the following commands to set manual proxy: gsettings set org.gnome.system.proxy mode 'manual' gsettings set org.gnome....
0
votes
0answers
15 views

How to disable updating one package using the Terminal?

I want to disable updating the documentation of the GNU C compiler because when I want to install that it causes an error and I cannot then install other updates.
1
vote
0answers
23 views

Can I get the steps for crawling in the below link available to execute in ubuntu 16.04.1?

Search Engine with Apache Nutch, MongoDB and Elasticsearch. A brief description about each component: Apache Nutch An open source web crawler forked from Apache Lucene MongoDB An open source ...
18
votes
3answers
1k views

“wc -c” and “wc -m” command in linux

I have a text file, its content is: i k k When I use wc -m to count character numbers on this file, the result is 7. Question 1: But why did I get 7, shouldn't I get "6" supposing that it counts ...
0
votes
0answers
23 views

My Ubuntu 16.04lts terminal does not connect to ethernet [on hold]

I cannot update or install any package using my terminal when connected to ethernet. My browser works with the same ethernet connection and I can also ping urls or IPs.
0
votes
0answers
17 views

Error when running “composer update” from terminal

vagrant@his-platform:~/his-platform$ composer update You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug Loading composer ...
4
votes
2answers
142 views

find and replace with on pdf file from command line

in linux,i want to find specific text or word from pdf file and replace it with another text.and make a new pdf file from command-line.i tried with sed,find,awk series on text files.but i want to get ...
1
vote
0answers
14 views

start process, then attach to tmux pane when needed

So, I'm trying to set up a tmux window that gives me a at-a-glance overview of everything on my multi-purpouse server computer. I'd like to have one pane of that window display the console output of ...
2
votes
1answer
45 views

SSH session doesn't export functions

I have a bunch of functions stored in ~/.bash_functions, which is sourced by ~/.bashrc on shell startup. The file exports all the functions like so: # Find functions in this script based on a grep ...
1
vote
1answer
30 views

commandline only virtual machine

I work primarily from a Mac with Fusion and several VM's for a given purpose. Can someone point me in the direction of a purpose built VM that is command line only, No GUI. Or possible some bread ...
0
votes
1answer
13 views

How do I programmatically disable the KDE screen locker?

I want to write a shell script that disables the KDE screen locker, sleeps for a while, and then re-enables it. But I don't know a shell command to control the screen locker. How can I do that?
2
votes
2answers
40 views

Connecting to a server via the command line

Newbie networking question here... So, I have followed some instructions from my university to connect to my personal space on the university network. The instructions are to open Nautilus, then ...
1
vote
1answer
29 views

CPU architecture scanning using bash

I am working on a toolkit for the company i work for, the problem is, one of the tools in this 'kit' needs to have the ability to recognize architectures, i already got 32 and 64 bits working but i ...
0
votes
0answers
24 views

What is the deffrent between text editors nano and less [on hold]

I started to learn Linux Command, And I need to KnowWhat is the different between Nano text-editor and less text-editor in Linux Command line. thanks.
1
vote
1answer
39 views

How to install and configure software without using the command line? [on hold]

To test a web application I use Virtualbox running Ubuntu Desktop (16). For nearly every action I want to perform I must use the command line. I feel this is not correct. I'm using a GUI desktop ...
1
vote
2answers
42 views

How can I use conditional constructs in a bash case statement?

I need to check the return codes of two sub-scripts launched from within a wrapper script, using the Bash shell. If either subscript fails they will produce a negative integer as a return code. If a ...
1
vote
1answer
12 views

Matlab related Sh file command not found

I'm trying to launch a program (ExploreDTI) which uses Matlab Runtime R2014a (8.3). I have a MainExploreDTI file (Executable (application/x-executable)) and a run_MainExploreDTI.sh sh-file. In ...
0
votes
0answers
25 views

How to start VirtualBox as UI?

I currently do startx which starts openbox and then in the terminal I write virtualbox and then start my virtual machine. Sometimes I don't need the OpenBox environment. I need only the virtual ...
0
votes
0answers
7 views

HP laserjet 1005 mpf scan problem in ubuntu 15.10

my hp laserjet 1005 mpf print ok. but scaneer not found. so you can tell me what issolution this problem. and tell me how to download hp laserjet printer and scanner driver in ubuntu by command ...
1
vote
2answers
27 views

Problems with making a desktop shortcut to a shell script

I have looked at many different posts about doing this, but none of the solutions have worked. I have already made both the shell script and the shortcut executable. Any other ideas? Here is the ...
0
votes
0answers
21 views

How exit from tty4 terminal without using Alt+SysRq+B to exit?

How exit from tty4 terminal without using Alt+SysRq+B(reset) to exit? Command Ctrl+Alt+F7 worked for some period, then stopped working, possibly after upgrade system, don't know. Ubuntu 14.04LTS
4
votes
2answers
784 views

I permanently changed my PATH variable by mistake, and I am unable to login now. How to change my PATH variable to default?

I used sudo -H gedit /etc/environment command on terminal to permanently change my PATH variable. To correct it, I pressed Ctrl+Alt+F1, and used export PATH command but the access was denied. Many of ...
0
votes
1answer
20 views

how to ssh to hostname without giving fqdn

currently i am working on lots of server which are having very lengthy fqdn. example prodService.xyz.pdr.abc.com and i want to do ssh to server like below without giving fqdn ,it should take fqdn from ...
2
votes
2answers
36 views

Run .sh with Desktop entry without closing terminal [duplicate]

Here is my desktop entry to run "PRGM.sh" [Desktop Entry] Encoding=UTF-8 Name=PRGM Comment=Launch PRGM Exec=gksu /home/markku/PRGM.sh Icon=utilities-terminal Type=Application Terminal=true The ...
1
vote
1answer
49 views

How to set built-in color scheme for gnome-terminal via CLI in Ubuntu 16?

I want to change the color scheme of gnome-terminal to the built-in scheme Rxvt. I know how to set the fore- and background color and 'use-theme-colors', with gsettings, but I just can't find the ...
2
votes
2answers
31 views

How can I copy text from xfce4 terminal emulator to the clipboard?

I want to be able to select certain text with mouse to copy and paste it to the commandline. The "select" and "paste from clipboard/primary selection" part works, but I am unable to copy the selection ...
0
votes
0answers
18 views

open files in a folder using loop

I am new to bash.As i want to create a loop of a file ina directory or folder as it consists of somany different extentions of files as video,audio,image ,text.... I need to create a code for that as ...
0
votes
1answer
19 views

Makefile problem

I was trying to make make command for a code in the remote computer.I found there is a problem and refuse to complete compiling. I need to get the logic of thinking on how to know the problem and ...
0
votes
1answer
19 views

How to skip to a particular option in man pages? [duplicate]

I have a simple request: Is there a way to quickly find out what a particular option for a command means using man? I know you can just Google for it, but I want to use the man pages if possible. ...
0
votes
1answer
24 views

Sync ubuntu settings between systems with shell script?

I am writing a simple shell script to automatically sync packages & their configuration between several systems. However, I couldn't find a way to sync system settings. For example: System ...
1
vote
1answer
15 views

How to change Windows line-ending to Unix version [duplicate]

We have 10 PC with some version of Ubuntu and only remote access. While doing some upgrades to custom software I did not notice that the line endings in some scripts were Windows version (CR+LF) and ...
8
votes
1answer
203 views

How to display modified time of a file?

I'd like a method to find and print the modified time of a file, for use within a bash script. I have come up with: ls -l $filename | cut -d ' ' -f '6-8' Which outputs: Jul 26 15:05 Though I'd ...
0
votes
0answers
22 views

dos2unix: The following packages cannot be authenticated!

I'm trying to install dos2unix package on my Ubuntu. I can't understand what the problem is. sudo apt-get install dos2unix Reading package lists... Done Building dependency tree Reading state ...
1
vote
3answers
195 views

How to use AND and NOT both in single grep command

I'm creating one of shell script, In which, I need to filter process except own grep process. If I use : echo "step1" psout=`ps -aux | grep 'deluged'| grep '58846'` echo "step2" echo $psout ......