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

learn more… | top users | synonyms (6)

-1
votes
0answers
10 views

Unable to fix the famous wifi issues after suspend due to gedit error

I'd like to apply the fix described here, but unfortunately I get this error in the terminal: (gedit:13552): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error....
0
votes
1answer
21 views

.bash_profile not working

I'm trying to set AVARIABLE in my bash_profile: echo export "AVARIABLE=example" >> ~/.bash_profile then source ~/.bash_profile After that, AVARIABLE should be working, but... bash: ...
0
votes
1answer
13 views

how to remove pdf studio from ubuntu 14.04

Recently I installed PDF Studio 11, Trial(Evaluation) Version. As far as I remember, I downloaded it from their website, and the file "PDFStudio_v11_0_2_linux.sh" is at /home/.../Downloads. In ...
0
votes
1answer
16 views

Adding a different PATH [duplicate]

I'm in trouble adding a different PATH. When I add it like that : export PATH=$PATH:/opt/file/base/bin/linux-x86_64 It works fine for the current terminal. But when I close it and open again, it ...
0
votes
1answer
9 views

Running Jab-Ref3.5.jar on Ubuntu 14.04

I downloaded JabRef-3.5.jar and I'm trying to execute it from the command line as follows: java -jar JabRef-3.5.jar Just as it says in this post. Unfortunately, it doesn't work. It says: Error: ...
0
votes
0answers
16 views

How Open Specific Part of .png Figure in Ubuntu's Terminal?

Situation: start browsing of the figures at width 1:960 and height full in Terminal Motivation: Ubuntu's default image viewer opens the figure at full width and full height, making the browsing of ...
0
votes
0answers
7 views

Heroku client internal error

I am facing this error while after installing heroku toolbelt in Ubuntu by this command $ wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh and when I try to log in by this command $ ...
3
votes
1answer
26 views

XTerm is seemingly ignoring .Xresources font size

I'm having some strange issues with regards to XTerm font sizes since the Xenial update. The actual content of the terminal (prompts, output, etc) appear excessively large, and I can't adjust them at ...
4
votes
3answers
174 views

How to find the symlink of a program [on hold]

When running firefox, /usr/bin/firefox, I know its symbolically linked to another program but I don't know how to find the symlink of that program. Any help?
4
votes
4answers
189 views

Capturing only a section of a command output

If I were to type a certain command, it would give me a long output in the terminal. I only need a few characters of this output. How do I, in a bash script, save only certain characters from a ...
0
votes
1answer
13 views

trouble installing RVM

I am trying to Install RVM but facing error. I am using following code to install RVM sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev gpg --keyserver hkp://keys....
1
vote
0answers
21 views

How to install Ubuntu16 into a system with console as the only display

I'm trying to install the Ubuntu16 into my embedded system. But my system only has serial console as the display output so ordinary methods seems not work. Is there a special image or a special tool ...
3
votes
3answers
154 views

python subprocess.call() not working as expected

I started down this rabbit hole as a means to familiarize myself with how one would go about creating a setup script in python. The choice of python was simply rooted in my familiarity with it while I ...
-4
votes
0answers
34 views

get used to the linux environment [on hold]

I'm new to the linux environment and i've recently installed ubuntu 16.04. I have been going through problems setting up the grub and drivers such as the wifi card drivers, but fortunately all my ...
0
votes
2answers
48 views

What is the Equivalent Command to Ubuntu's GUI “Mount”?

Situation: Ubuntu-mount USB drive on the system by a terminal command, same as Ubuntu's GUI mount Configurations # http://askubuntu.com/q/648159/25388 gsettings set org.gnome.desktop.media-handling ...
0
votes
0answers
14 views

Install font packages for all the language charsets

On a machine running Ubuntu server there is a script that generates pdf files with the website content. There was a problem that it was not showing the Chinese characters. After installing the ...
0
votes
0answers
17 views

Native system pop-ups from terminal on 16.04 [on hold]

I want to have a native system pop-up occur after a script completes in terminal. I have already looked at notify-send but this does not seem to work on 16.04. Has the Ubuntu 16.04 notification ...
1
vote
1answer
25 views

find history of mysql commands on ubuntu

i use mysql on ubuntu.i find all last commands history on terminal by history command but it exclude mysql query or commands.is there any method or command like history to find last mysql queries ...
5
votes
3answers
297 views

change text-color of my output on command prompt?

Suppose i've a php file and i want to change text-colour of my output for a console based application... <?php $prompt = "What Is Your Name: "; echo $prompt; $answer = "You Entered: " . rtrim( ...
0
votes
1answer
33 views

sort a lot of file in directory

I have a problem in bash . I have a lot of file(.mp4) nearly 140 that i want to create directory with similar name with that files but the bash show me this file is exist ! how can do it ?
0
votes
0answers
21 views

sudo apt-get install virtualbox downloading the android studio [duplicate]

I am using kubuntu and I used this command yesterday to download android studio sudo apt-get install android-studio and then I saw it installing the same file android-studio zip file that I have ...
2
votes
2answers
95 views

Why I could not create a folder named '/' using terminal?

I tried creating a folder with name '/' using the mkdir command. But it returned a message saying: mkdir: cannot create directory ‘/’: File exists I tried quoting the the name '/', and adding ...
1
vote
1answer
37 views

How do install AutoKey?

How do I install autokey in the latest version of Ubuntu 16? It isn't in the ubuntu software center. How do I run a command line command to build such.
6
votes
2answers
199 views

Message overflow in notification bubble

I am learning how to use gtk notifications, and it seems that any output display via the notification bubble has a maximum overflow size, probably 10 lines or so. So, if the message I want to show is ...
0
votes
2answers
22 views

How I can copy a src code from my computer to the remote computer

I am beginner in linux and I don't know many details about it. I am trying to copy a folder from my computer to remote computer to install it in the remote computer and work with it. how I can do that....
0
votes
1answer
33 views

Steam wont launch on Ubuntu 15.04 64Bit [duplicate]

I'm fairly new to Ubuntu, so I don't know if this is a simple fix or not. I've read some fixes to answers for my problem but I don't really know how to do any of the things they're telling me to do (...
2
votes
1answer
25 views

Cancel and restart a certain Routine (python-script)

I have a question regarding a programm I run. Every once in a while, I need to restart a certain program. For that case, I usually run: screen ./run.sh arg1 arg2 "arg3" (screen, since I don't know ...
0
votes
1answer
21 views

Creating a Windows VM with Virtualbox

Is there a way to create a Windows VM in Virtualbox ONLY using CLI?
6
votes
1answer
203 views

create file and its parent directory

I know that touch command creates a file: $ touch test1.txt bout how I can create a file and its full path? for example my desktop contains nothing: ~/Desktop/$ ls ~/Desktop/$ and I want to ...
6
votes
1answer
22 views

How to change VirtualBox default VM location in command line

The default location is ~/VirtualBox\ VMS. How can I change it in command line? (GUI is not an option)?
10
votes
2answers
1k views

What does [co] mean in the “rm -rf filename[co]” command?

Let's say I have two files in /tmp: root@ubuntu:~# touch /tmp/hello.{pyc,py} root@ubuntu:~# ls /tmp/ hello.py hello.pyc Now, lets run rm -rf command with [co] option root@ubuntu:~# rm -rf /tmp/...
8
votes
2answers
246 views

copy/move multiple files using cp/mv without using regular expressions

Suppose I have a folder containing some files and some folders(files can be of any type). And I want to move/copy some of those files and folders using mv/cp command. Is there any way, such that I ...
5
votes
5answers
269 views

How to get text from range of dates using grep/sed in large text file?

I have big file text (almost 3GB) - it is a log file. I want to get lines of text which correspond to a range of dates from this file, from 13 July to 19 July. My log format is: 2016-07-12 < ?xml ...
4
votes
1answer
34 views

Comment, Uncomment, change setting based on string, add line from terminal

I have to edit some files to uncomment a line, change a value on that line or uncomment a line. I am trying to do this through a bash script. I am trying to edit /etc/ssh/sshd_config and change ...
0
votes
2answers
27 views

What is terminal command line that tells me where system has assigned TMPDIR?

I want to type a command in an Ubuntu 15.10 terminal, that will tell me what folder is being used as the "temporary" folder. Is there one? Tx for any comments.
0
votes
0answers
31 views

Programming a terminal web browser [on hold]

After reading some python network programming and playing around with sockets, I got the idea of creating a simple terminal web browser. My question is if it is possible create a terminal web browser ...
0
votes
0answers
27 views

Miserable printing of the hindi words by python in terminal

Suppose I want to print मैं ठीक हुँ । in terminal in hindi language either by using the python with unicode or if i just copy and paste, instead of correctly pasting and printins it correctly, it ...
2
votes
2answers
43 views

How to compare any string from output through shell script of unix command

I get a log file as soon as I run one command(process is still running in background). Now I want to fetch the status (clean or un-clean) from that log file. If status is clean then I will leave the ...
1
vote
2answers
18 views

dynamic file name for mysql

mysql --host *HOST* --p --user *USERNAME* -e "query" > file.lst pause My code looks as above. Is there a way to rename the file.lst and add sysdate at the end and make it like file19072016....
9
votes
3answers
796 views

Can I use '!!' in aliases or scripts?

In the Terminal I can use !! which will reference my previous command. Is it possible to use this in an alias? I have tried it, but what happens is that the double exclamation marks are interpreted ...
3
votes
2answers
275 views

Can I make a screen switch from one computer to another by cli?

I have my monitor hooked up to computer A via DVI and to computer B via VGA. If I start PC A first and PC B last, the monitor displays PC A's signal. Is there an easy way to change between the two ...
7
votes
3answers
125 views

Can't locate a directory using “locate”? [duplicate]

I want to locate a directory in my system using "locate" command. I know there is a directory named "bench-repo". when I'm giving the following command it shows me the following error : locate: can ...
1
vote
0answers
25 views

How to prevent command execution edited with fc

I have FCEDIT set to vim. If I call fc command it will open vim with temporary file and contents of that file will be the last executed command from history. The problem is that even if I exit ...
1
vote
1answer
50 views

How to fix an interrupted OS update?

I'm using Ubuntu 16.04 and ran an OS update using the Ubuntu Software Center, which was interrupted by a power cut. The error message, A problem occurred when checking for updates. is now present, and ...
0
votes
1answer
13 views

Terminal Marked “Not Executable”, and owner is root. Ubuntu 14.04 Unity Desktop(Chromebook)

So for some reason, terminal didn't appear anywhere when I tried to find it in my applications. So I went to the usr folder in my computer, and searched "terminal" there. I found it, but it was all ...
1
vote
2answers
36 views

service command not found

I'm trying to start ssh using: service sshd start but the service command can't be found, so it gives me an error: zsh: command not found: service What should I do? EDIT: I added /usr/sbin to ...
1
vote
0answers
16 views

when I try to copy text from the command line strange characters appear

when I try to copy text from the command line strange characters appear. I have never not been able to copy and paste in the virtual terminals. I tried installing GPM just in-case, but it did not ...
0
votes
0answers
51 views

My bash script for Grive2 works well in Ubuntu Mate but for some reason it doesn't in Lubuntu

I'm new and I'm learning English so please don't be too rude if i make things wrong, but tell me if I'm not doing them good, of course. Hello community!, by the way. Anyway, getting to the point of ...
0
votes
0answers
24 views

What is wrong with my situations here trying to install rails? [closed]

When Trying to installed rails after having installed homebrew, rbenv and just about all that other good stuff, I'm usually hit with permission denied every attempt and seem to be able to do nothing ...
3
votes
2answers
88 views

Ubuntu Touch change system settings from command line (silent mode specifically)?

I'm looking for a way to automatically set my Ubuntu Phone to silent mode during the night and automatically turn off silent mode in the morning (I keep forgetting to turn it off myself). I figure ...