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

learn more… | top users | synonyms (5)

7
votes
6answers
562 views

Only get the H+W geometry of my screen without the later +x+y

I am reading this article. There is a statement there that goes: ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -s $(xwininfo -root | grep 'geometry' | awk '{print $2;}') -r 25 -i :0.0 -sameq -f mpeg -ar ...
0
votes
1answer
58 views

Unable to execute .out file

I have recently installed Ubuntu 14.04 and I am not able to execute .out files in my folder. I am adding the output of various commands that I have tried. The file name is a_lena.out $ls -l ...
1
vote
1answer
59 views

Unity - 14.04 - Set Launcher Icon Size - via command line

I've got a few computers, all coming to the end of their life. The first couple have gone and I find myself again having to re-install ubuntu on it's resurrected remains and then laboriously ...
0
votes
2answers
34 views

Change content of a file from the terminal

How can I change the content of a file from the terminal? I do not want to use any application like a text editor, since I want to use it for a script. To give an example, I want to turn the file ...
0
votes
0answers
74 views

How to change subtitle color and other options in mencoder command line tool?

I want to burn a subtitle file with .srt format in Persian (-utf8) into a video file with .mp4 format using mencoder. This command works for simple task: sudo mencoder input.mp4 -sub subtitle.srt ...
3
votes
3answers
53 views

Where is the output of a Terminal (Gnome Terminal) stored

First of all, this is not a question about history, which stores all the entered commands. I have on my workstation at work several open Terminals from which I launch simulations, examine the output ...
0
votes
1answer
38 views

Does ubuntu treat downloaded files specially?

There is a script which just adds extra lines to my /etc/hosts file to enable local development. Since it's pretty useful, I decided to keep it in a gist. When one of my friends downloaded the ...
2
votes
1answer
58 views

the output when I start firefox from Terminal

I was curious and wanted to see if I could start Firefox using Terminal. So I typed firefox in Terminal, and it displayed the message below (process:5199): GLib-CRITICAL **: g_slice_set_config: ...
0
votes
1answer
40 views

How to change internal IP address from DHCP to static?

I have a pc running Ubuntu server 14.04.1. The internet was set up using DHCP I believe. I want to keep the same IP and subnet I have now but just change it to static for the internal IP.
0
votes
0answers
22 views

Will this answer work with 14.04.1? [duplicate]

I am about to install owncloud on Ubuntu server 14.04.1 and I want to know if this answer Owncloud server on ubuntu 12.04 would work on 14.04.1.
-1
votes
1answer
21 views

&& command string question

So I was wondering if it would be possible to run the command: sudo apt-get update && sudo apt-get upgrade && sudo pm-suspend As you can probably work out for yourself, I wish to ...
1
vote
2answers
78 views

How to find valid static IP address?

I am about to set up a pc with ubuntu server 14.04.1. I want to assign it a static ip address. How can I find a valid IP address that is not already being used? Is there a way to do that from ...
1
vote
2answers
56 views

.desktop file doesn't execute a script, works fine when run by hand

I am having problems with my .desktop files. I have a shell script that constantly watches for a file to be put into the "Downloads" folder. When a file is put into the folder it automatically ...
0
votes
0answers
24 views

How to auto save tabs in Terminator

I'm working constantly with terminator with multiple tabs (splitted vertically and horizontally), almost every time I reboot my machine I open Terminator and start opening tabs, and configure each tab ...
0
votes
2answers
76 views

Understanding rm command

I've been using Ubuntu server at home for a while now, and I've noticed I've some holes in my knowledge of bash and in general several dangerous tools like rm. It is first time in my life I used rm ...
0
votes
0answers
19 views

How do I run Lubuntu from my existing Ubuntu 14.04? [duplicate]

I entered sudo apt-get install lubuntu-desktop on a terminal, and everything was downloaded properly. The thing is, I do not know how to run Lubuntu from my Ubuntu OS. I am quite a begginer. Regards.
6
votes
2answers
127 views

Command line command to refresh GUI desktop, like when pressing F5?

Is there any command to refresh the desktop icons (exactly like F5 button does)? I need this because in Startup Applications I set a command to mount my backup partition and I've created a desktop ...
0
votes
0answers
37 views

switching kde activities in command line

I started taking a course on bash scripting, and i'm still a newbie in bash scripting...please i wan't to know whether it's possible to control and switch kde activities in kubuntu via the command ...
0
votes
1answer
32 views

compare files in loop

I have a folder testcases, with various subfolders. In each subfolder there are 3 files: testcase.csv testcase64.csv testcaseMac.csv. How do I loop through all the subfolders and compare 3 files ...
1
vote
1answer
45 views

Is there any advanced MOVE command with GUI-kinda interface

While downloading a file,in command-line, we have WGET which shows us the progress of the download. Similarly, is there any command which gives us visual status of the process(move).
0
votes
0answers
43 views

Connecting tata photon in X window manager using command line

Due to some reason i had to shift from Unity(not 2-d as i remember) to X window manager. So here on the desktop nothing appears (no launcher , no menu bar nothing) but we can open command line in it ...
0
votes
1answer
36 views

which linux configuration is used my my system? [duplicate]

is there any command in linux ,which gives every specification of currently running linux distro,, including shell, desktop enviroment(like GNOME or KDE) ,display manager (gdm or ligthdm or kdm )and ...
2
votes
1answer
39 views

How can I dump and restore MySQL databases to and from Dropbox from the command line?

I have a few MySQL databases that I would like to sync between two computers. What I'd like to do is be able to have a quick command or script on one computer that I can use to quickly dump the ...
0
votes
2answers
72 views

How to install a downloaded .deb file [duplicate]

I am new to Ubuntu. I installed a Ubuntu a few days back. I downloaded a deb files. But i don't know how to install it. Can anyone tell me how to install a downloaded deb file?
1
vote
1answer
139 views

Extract several zip files, each in a new folder with the same name, via Ubuntu terminal

I have many zip files a.zip, b.zip, c.zip, ... and I want to extract each of them into new folders a, b, c, ... respectively, via ubuntu terminal. Actually, what I want is a solution that I can use ...
3
votes
1answer
80 views

How to get terminal access to ISO mounted with Archive Mounter?

When I mount a .iso image with Archive Mounter using Nautilus, I get a new entry under Network. I can use this in Nautilus but cannot find a way to cd to it from a terminal. I tried installing ...
2
votes
2answers
215 views

How to call just a function from text script

I have a text file with a lot of functions in it. for example: # fisrt function # runs update and upgrade function upug() { sudo apt-get update && sudo apt-get upgrade } # ...
0
votes
0answers
63 views

ls command not working in ubuntu 14.04

I was trying to use ls command in my ubuntu 14.04 but it keeps on showing the following error, ls: unrecognized option '--color=auto' BusyBox v1.21.1 (Ubuntu 1:1.21.0-1ubuntu1) multi-call binary. ...
0
votes
1answer
65 views

Understanding chmod Symbolic Notation and use of Octal

Many new users make mistakes (or have misunderstanding) while applying chmod on files or directories, because of a lack of informative knowledge of: Symbolic notation for ugo and rwx Use of octal ...
0
votes
0answers
73 views

Terminal has lost its transparency option?

I just installed a new GFX card and ended up reinstalling 14.04 but now I have no option for transparency in the terminal. The whole 'background' tab is missing in the profile options does anyone know ...
0
votes
0answers
33 views

bash: Permission Denied when I move my CPP file to another location

I crafted a test CPP programme. It created a file in the home directory. It compiled with ease, and I could run it by typing ./rocketfire in the Terminal. Now, I did these: abhimanyu@AbhimanyuPC:~$ ...
0
votes
1answer
19 views

How to use a percentage character in the Exec line of a desktop entry file

How can I use a percentage character in the Exec line of a .desktop file? The following example does not execute. [Desktop Entry] Type=Application Terminal=false Icon=vinagre Name=RDP ...
6
votes
2answers
354 views

Why do I get different outputs in case of sh and bash?

I have the following simple script: #!/bin/bash echo "Bash version ${BASH_VERSION}..." for i in {1..99..2} do echo $i done Output in case I run with sh file.sh: Bash version ... {1..99..2} ...
1
vote
2answers
66 views

Changing environment variables

I just changed my /etc/environment file to: M2_HOME=/usr/local/apache-maven/apache-maven-3.1.1 M2=$M2_HOME/bin ...
-1
votes
0answers
34 views

Gedit embedded terminal not working

I get this error when I run gedit: $ gedit Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/gedit/plugins/terminal.py", line 309, in do_activate self._panel = ...
1
vote
1answer
164 views

ubuntu 14.04 stuck in login loop. Nothing seems to help [duplicate]

just an hour ago, I installed some package which was supposed to solve the problem with dead keys. After that I restarted my laptop and could not log in because of infinite loop with the login page. I ...
1
vote
2answers
62 views

How to get a colored bash?

How to get the bash colored like this?
0
votes
1answer
26 views

Easiest way to take a continous series of pictures from a webcam

Looking around I found several solutions to take individual pictures (a few solutions are given here) and even a series of pictures (with up to one fps). I want to store the pictures in much lower ...
-2
votes
0answers
35 views

How can I execute shell command in server?

I have a problem that is execute bunch of shell command to the live server. How Can I do this? I have searched something about it and here i got a following solution. The solution is that the ...
0
votes
1answer
33 views

How do I open .cpp file from the github directory? [duplicate]

I'm a total newbie here. How do I open .cpp file from the github directory? what command should I use? I'm in the directory where the .cpp file is stored but I do not know how to open that in the ...
1
vote
2answers
97 views

Terminal method of formatting storage drive

I want to know how to format a storage drive from the terminal. Helpful things to provide in the answer would be often used options for commands and base knowledge that one can use to extrapolate ...
0
votes
0answers
18 views

can anybody explain what ls -l do? [duplicate]

can anybody explain what ls -l do? I'm new to command line functions so simple explanation would suffice. Thank you. For my reference the results I get when I typed ls -l was: drwxrwxr-x 3 student ...
1
vote
1answer
37 views

Give file permissions back to root

I accidentally typed out this command, not knowing exactly what it did: sudo chown -R user:user / Now when I type ls -la /, it shows that user has permission to all directories (before it showed ...
-1
votes
3answers
55 views

Create and replace an existing directory?

I have a directory name foo located in ~/Desktop. Suppose I want to create a directory from a terminal with same name and in the same location. When I tried mkdir it gave an error: mkdir: cannot ...
1
vote
1answer
35 views

What is the difference between free and vmstat commands?

vmstat output: procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 1 1 0 1001568 84736 ...
0
votes
0answers
31 views

Change terminal or terminator profile via keybinding or echo command

How can I change profile for terminator or terminal without touching the mouse? in terminal alt-t will allow me to get to menu to change profile echo -en "\033]0;$*\a" will allow me to set title ...
-1
votes
0answers
38 views

old version of newly installed skype opens instead of new one - not in terminal, but with quick access

I have installed the new skype version (4.3) on ubuntu. thanks to this thread How to upgrade skype from 4.2 to 4.3 i managed to do it with little proficiency, thank you so much! and i have also ...
0
votes
1answer
132 views

convert.im6: Unable to open image `xxx': Permission denied @ error/blob.c/OpenBlob/2638

I just tried converting several different images into a PDF file using the 'convert' command in a terminal, but when I did so, it returned: convert.im6: Unable to open image 'xxx.pdf': Permission ...
0
votes
2answers
42 views

Is there any way to install multiple software at a single command via terminal? [duplicate]

I just want to know after install ubuntu newly it`s need to install previous essential software again,That is really time consuming so is there any way that I write command and my essential software ...
1
vote
2answers
59 views

How can I wipe my hard drive from the Debian command line to install Ubuntu to a blank hard drive?

So here's my dilemma. I tried to install Debian and it wiped out Windows entirely after I installed the GRUB Bootloader. Thinking, "ok, I'll just get it back after I finish installing Debian," I ...