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

learn more… | top users | synonyms (6)

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
616 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
283 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
26 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
68 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
40 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
29 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?
3
votes
2answers
94 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
206 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
36 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
395 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
32 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 ...
10
votes
3answers
840 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
52 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....
7
votes
3answers
127 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 ...
2
votes
4answers
22k views

What is 'sudo tar -xzf'? Why it is used?

I need to know the extensions of xzf and its usage. Is it necessarily to be used in installing a software? sudo tar -xzf utorrent-server-3.0-ubuntu-10.10-27079.tar.gz Why this is used?
1
vote
2answers
43 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 ...
0
votes
0answers
55 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 ...
6
votes
5answers
44k views

Failed to get size of gamma for output default when trying to add new screen resolution

I'm trying to adjust resolution on my new MSI GT70 2OC. In settings, only one resolution is available: 1920x1080. This is fine, except that I need to decrease the resolution and make it more ...
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 ...
2
votes
1answer
371 views

Gnome 3.18 Activities overview and application list very slow with Ubuntu 15.10

Ok, any help would be great: After updating to 15.10 and Gnome 3.18, the activities overview has become very unresponsive. Arranging windows from desktop to desktop is slow and when opening and ...
3
votes
3answers
38k views

export http_proxy: where does the proxy setting get stored?

Today by mistake I had entered the following command in terminal with incorrect information export http_proxy="http://usrname:passwrd@host:port" and then my internet connection was having trouble. ...
0
votes
1answer
15 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 ...
12
votes
3answers
398 views

How to insert tabs before output lines from a executed command

Just a quick question. Is it possible to tab the output on Ubuntu 16.04 LTS? I've created two images below to try and illustrate what I mean by this.
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 ...
37
votes
10answers
114k views

How to show only hidden files in Terminal?

I have a directory that contains thousands of files, some of them are hidden. The command ls -a list all files, including hidden ones, but I need just to list hidden files. What command should I use?...
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 ...
1
vote
2answers
6k views

Open pwd protected http stream in vlc from CLI

Can anyone please advise me on how to open a pwd protected http stream from CLI in vlc? I checked out the --help and man pages, but they seem to offer only syntax for opening ftp, rmt and smb pwd ...
28
votes
3answers
43k views

Why does switching to the tty give me a blank screen?

After booting to the GUI in 12.04, I attempt to move to the virtual terminal (or shell, or tty) via Ctrl-Alt-F1 (F1 through F6), and the screen remains blank. I'm tried all 6 tty instances and the ...
-1
votes
2answers
39 views

s3cmd asking for S3 URI while using s3cmd get

I have uploaded a mysql backup file onto amazon s3 s3://bucketname/object/mysqlbackupfile. When i am trying to retrieve it using s3cmd get s3://bucketname/object/mysqlbackupfile there is an error ...
2
votes
1answer
11k views

“Could not chdir to home directory /home/me: No such file or directory” [duplicate]

I am using 12.04 on my server. I created a new user using adduser me and passwd me and added it to sudo when I login this is what I see. Could not chdir to home directory /home/me: No such file or ...
0
votes
1answer
78 views

Ubuntu 16.04 , Steam refuses to work (Update 3) [ FIXED ]

FINAL UPDATE : fixed it on my own. I'm unable to launch steam , not from its icon in the dash , or from command line. i installed steam from the offical steampowered website since for some reason its ...
1
vote
1answer
116 views

How to install .tar.gz files which don't have .config file?

I understand that a .tar.gz file can contain anything, but many software packages are available for download as .tar.gz. In my example, I am trying to install the flash player. I downloaded the file ...
0
votes
0answers
16 views

Guake - How to make it look like a real FPS command line?

I've just download Guake, I like it, but the way it comes it doesn't fully satisfy my tastes. I'd like to know how to move the input line to the bottom of the shell, but I can't figure it out... ...