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

learn more… | top users | synonyms (6)

32
votes
3answers
183k views

Moving folder and subfolder to another path

I need to move my folder with many subfolders to another path. I'm using putty and this is what I tried: MV -r fromflderpath tofolderpath What am I doing wrong?
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
1answer
17 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: ...
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 ...
3
votes
1answer
37 views

Convert files to MP4 in sub directories

I have my film and series collection in one directory, which obviously has a lot of sub directories and a lot of different formats. It's constantly being added to by all of us here. What I'd like to ...
0
votes
1answer
12 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
15 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 ...
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 ...
10
votes
2answers
45k views

How to make terminal autocomplete when there are several files/directory?

If I have several directories, like: afoo abar sometimes my terminal will refuse autocomplete when I press tab (e.g. "cd a" then tab), and print the list of directories instead. Sometimes it even ...
16
votes
11answers
35k views

How to start terminal in full screen?

When I open a terminal using CTRL+ALT+T in Unity, I would like this window to be automatically maximized, rather than to have to additionally hit ALT+SPACE and the 'X' key to make the window that ...
-1
votes
0answers
290 views

cannot open terminals in ubuntu 15.10 with CTRL+ALT+Fn keys

After fresh new installation pressing CTRL+ALT+F1 gives nothing. No terminal opened. So after uninstalling nvidia-current package because of another issue I have another bug: only mouse pointer ...
0
votes
0answers
12 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 ...
10
votes
4answers
2k views

What is the differences between &> and 2>&1

There are two forms of redirection the standard output and standard error into standard output. But which one is better? and why the &> is considered the perfect? I can't find what is the ...
96
votes
9answers
274k views

How to open a PDF file from terminal?

I used to work on the Mac terminal before and I used: open file2open.pdf and the PDF file would be opened on preview or whatever my default viewer was. When I use it in the terminal in Ubuntu I ...
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 $ ...
4
votes
3answers
172 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?
21
votes
3answers
140k views

Command to get the hostname of remote server using IP address

I want to get the hostname of a remote server using the IP address using my Ubuntu. In Windows we can get using NBTSTAT but this doesn't work in Linux. Does anyone know how to do that?
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....
3
votes
3answers
153 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 ...
66
votes
7answers
114k views

Reverting from Ctrl - Alt - F1

I tried to install an nvidia driver and there was an error saying I must not be in an X terminal when doing so. So I did a Ctrl+Alt+F1. The resulting terminal did not allow the nvidia driver to be ...
22
votes
5answers
105k views

Using Terminal as a web browser [duplicate]

I've found that terminal can be used for various purposes. This will be great if I can use it as a web browser. Is there any way to use it as a web browser??
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 ...
2
votes
2answers
8k views

Switching between console and GUI in ubuntu

When in GUI mode, is there a CLI commands that kills the GUI and drops me into the console? When in CLI mode, is there a CLI command that drops me into the GUI? I found startx, but this drop me into ...
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 ...
-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 ...
5
votes
3answers
295 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( ...
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.
0
votes
2answers
47 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 ...
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/...
1
vote
1answer
3k views

Change color of command line text.

I thought that colored text was just something dictated by my gnome terminal preferences, however, I've discovered there's something slightly more to this because when I'm on my ubuntu VPS, text that ...
12
votes
1answer
359 views

What is the difference between locate/whereis/which

What is the basic difference between locate whereis and which command. The basic difference that I observed is that locate locates all the related file names in the entire filesystem, whereas ...
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 ?
16
votes
6answers
7k views

How to set the Default Browser from the Command Line?

Tried to set the default browser using the GUI tools but this didn't work overall. Is there a way to configure the system wide default browser from command line?
54
votes
9answers
115k views

Find number of files in folder and sub folders?

I want to find the total count of the number of files under a folder and all its sub folders.
5
votes
2answers
7k views

Can't find PhpStorm

I am new, never used Ubuntu until yesterday, so I'm not really into it, yet. I installed PhpStorm from JetBrains, but I can't find it anywhere, I need to run it. I searched /usr/share/applications as ...
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 ...
3
votes
5answers
37k views

How to add words to a text file using just open terminal command (no editors) and then save the text file

I'm new to Linux. I need to edit .conf file from open terminal only and not using any text editors. That is, can I add words and sentences to a config file from open terminal? Example: command /home/...
6
votes
2answers
198 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 ...
12
votes
4answers
1k views

An Ubuntu command bricked my system?

I freshly installed Ubuntu on my computer a few days ago to run an exclusive program. I finished with it, and I was about to format the drive to reinstall Windows. However, my little brother wanted to ...
2
votes
4answers
7k views

Can I install pantheon terminal in ubuntu 14.04?

Is it possible to install Pantheon terminal from elementary os on my ubuntu 14.04? If yes, how can I?
23
votes
3answers
34k views

How to check which shell am I using?

I read that terminal is nothing but shell. Then unix provide different flavors of shells: Bourne shell (sh) C shell (csh) TC shell (tcsh) Korn shell (ksh) Bourne Again shell (bash) When I open ...
9
votes
4answers
594 views

Create a progress bar in bash

How can I create an progress bar with bash? This is my script: #!/bin/bash pass='number1 number12 number13 number14 number15 number16' chk='number14' for i in $pass ; do if [ "$i" == "$chk" ]; ...
2
votes
1answer
4k views

Ubuntu touch Terminal app asks for password

I just installed ubuntu touch latest devel on my nexus 7 2013. Everytime i open the terminal app it asks for a password. I am not talking for the root password that i read it is "ubuntu". Does anyone ...
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 ...
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....
5
votes
1answer
62 views

How to extract first 10pages from each pdf files of a folder

I have 90 sub-folders in a folder. Each sub-folder contains pdf files. Total pdf files are nearly 2200. How can I extract page number 3 to 10 from all pdfs? To extract the pages from one pdf, I am ...
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 (...