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

learn more… | top users | synonyms (6)

66
votes
7answers
115k 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
100 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
300 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
40 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
54 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
15 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
19 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
27 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
2k 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 ...
13
votes
1answer
371 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/...
7
votes
2answers
207 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
35k 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
608 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
276 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
67 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
36 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 (...
16
votes
7answers
37k views

How to see more lines in the terminal

I'm installing a package and get a load of errors and need to be able to read through all the error messages that come up. Unfortunately the terminal will only display a finite number of lines. How do ...
2
votes
1answer
28 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
23 views

Creating a Windows VM with Virtualbox

Is there a way to create a Windows VM in Virtualbox ONLY using CLI?
8
votes
2answers
248 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 ...
3
votes
2answers
93 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 ...
6
votes
1answer
205 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
24 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)?
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.
1
vote
2answers
394 views

getting different version of java in ubuntu

I am getting different version of java when i run java -version and javac -version. for java-version iam getting java -version java version "1.7.0_65" OpenJDK Runtime Environment (IcedTea 2.5.3) (...
0
votes
0answers
31 views

Programming a terminal web browser [closed]

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 ...
22
votes
2answers
19k views

Split a large file into smaller files and then integrate them to get the original file

How do I split a 7GB (movie) file into smaller files of (say) 1GB, and then (in another Ubuntu computer) integrate them to get the original file (using just bash commands)?
2
votes
2answers
44 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 ...
0
votes
1answer
4k views

Curl request not working

Can some help me out in this.? I tried making a curl to random web pages it works fine. This address mentioned below i tried via browser it also works but when i try this via shell it does not work. ...
0
votes
0answers
28 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 ...
9
votes
3answers
814 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
276 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 ...
1
vote
1answer
51 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 ...
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....