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

learn more… | top users | synonyms (5)

0
votes
2answers
25 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
34 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
16 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 ...
1
vote
0answers
14 views

Disabling suspend when lid is closed from command line?

I have a Dell Laptop running Lucid, and the screen is broken. I use it as a server for some tasks, however, with management being done over SSH. The machine is not running an X server. I'd like to ...
0
votes
2answers
59 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
17 views

How do I run Lubuntu from my existing Ubuntu 14.04?

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.
2
votes
1answer
35 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
20 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
22 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 ...
0
votes
1answer
29 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
32 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
33 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
22 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
28 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
62 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
24 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
1answer
30 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
32 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
42 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
29 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
18 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
17 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 ...
4
votes
2answers
333 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
41 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 ...
0
votes
0answers
13 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
61 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 ...
-4
votes
0answers
16 views

I need to lock the key left Shift [on hold]

SORRY BUT I go straight to the POINT Own key SHIT IS PRESSED ONE, NOT A VIRUS, IT IS NOT THE KEYBOARD, AND ALL was reviewed, Believe Me ALREADY Look at all those choices so NO NO'll NEED THOSE DETAILS ...
1
vote
2answers
48 views

How to get a colored bash?

How to get the bash colored like this?
0
votes
1answer
22 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
32 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
29 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
60 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
17 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
24 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
45 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
16 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 ...
-7
votes
0answers
29 views

c program error in Ubuntu 12.04 using gcc [closed]

I ran C program using gcc compiler in Ubuntu 12.04 but whenever i run my program it shows virtual memory exhausted error to me through Ubuntu terminal. it is not a error i wrote error command in ...
0
votes
0answers
13 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
19 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
22 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
39 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
37 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 ...
0
votes
1answer
50 views

Is sim a shell script command?

I was creating a sym-link for practice in Ubuntu 14.04. I meant to use this command: ln -s ../fun dir1/fun-sym It was taken from a book I am using. Except I used sim at the end by mistake. So the ...
-2
votes
1answer
50 views

Running python module in gedit embedded terminal [closed]

I'm new to python and i'm trying to run my first module but i can't do that through gedit embedded terminal the code i wrote is def num(b): print("Give A Number") b = b +5 print(b) I ...
25
votes
4answers
2k views

Is ~ considered like a relative path?

I'm trying to extract the different part of the Nvidia cuda library installer. I'm using the following command: mkdir ~/Downloads/nvidia_installers ./cuda_6.5.14_linux_64.run ...
3
votes
1answer
78 views

How long is an ARP entry cached for?

Where can I find out how long ARP table entries are cached? I'm running 13.10. Can I get this on the command line?
2
votes
2answers
42 views

Is it possible to launch an application on a remote pc using the terminal?

I found myself away from my computer needing to do some quick work that required my accessing my desktop remotely. I normally use teamviewer, but I don't have it load on boot. I can launch it from the ...
-1
votes
0answers
17 views

Connect to wireless internet through terminal without external programs to set up a server [closed]

Ok. Here's the deal. I have a computer that does display desktop, only terminal. So through terminal, I need to connect to the internet (Long story). I would like a single command if possible like: ...
2
votes
1answer
36 views

How do I create simplistic window-like elements in a command-line program?

When I execute sudo dpkg-reconfigure lightdm in the terminal I see a simplistic window-like listmenu. Is there an way to make something like that in C++? This looks something like:
0
votes
1answer
28 views

After update to 14.04, ncurses seems to have bugs (cursor still visible in petris)

I just upgraded to 14.04, and wanted to kill time by playing some petris. Then I noticed this: The problem also exists in other terminals. Is there some option I can set to get the terminal to not ...