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

learn more… | top users | synonyms (5)

1
vote
2answers
27 views

How to get a colored bash?

How to get the bash colored like this?
5
votes
6answers
39k views

How do I connect to TTY/COM (/dev/ttyUSB0)?

Just running Ubuntu for the first time by booting to USB drive. Now I have plugged in a USB-to-Serial converter which has been recognized and automatically added as /dev/ttyUSB0
-1
votes
3answers
39 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 ...
30
votes
5answers
34k views

How to list all variables names and their current values?

Including not only $HOME, $PWD etc but any other you have defined.
-2
votes
0answers
8 views

I need to lock the key left Shift

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 ...
0
votes
0answers
8 views

Double clicking .jar's no longer working | 14.04 [duplicate]

I had my system set up perfectly, Java, Skype, Chrome: then about 3 days ago, I became suddenly unable to open java's .jar files without a terminal. Java -jar <jarfile> still works, but I ...
0
votes
4answers
605 views

How to prevent script not to stop after apt-get?

I keep some bash snippets and copy&paste them when I needed for management. But I discovered apt-get cancels script execution. Here's my script where problematic. apt-get -y install gcc g++ make ...
0
votes
1answer
16 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 ...
1
vote
2answers
38 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 ...
-2
votes
0answers
27 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 ...
-7
votes
0answers
24 views

c program error in Ubuntu 12.04 using gcc [on hold]

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 ...
2
votes
2answers
81 views

How can I access the H264 stream from my IP-cam with “Motion”?

What is Motion?: Motion is a deamon application which allows Linux users to record pictures of webcams and ipcams based on motion detection or time settings. A Tutorial how to set up the stable ...
0
votes
1answer
26 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
1answer
20 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 ...
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
13 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 ...
4
votes
2answers
351 views

Undo copy (cp) command action

I copied some file from source folder into destination folder by using bellow command line in terminal. sudo cp From_SOURCE/* To_DESTINATION/ Now I want to undo this command.
1
vote
2answers
227 views

start terminal from bootable USB drive

I am running Ubuntu from a bootable USB drive on an old machine. The graphical interface is using up all the memory and I actually just need a terminal. Is there a way to not start the desktop ...
0
votes
0answers
11 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 ...
0
votes
1answer
22 views

Terminal paging and scrolling

My terminal is very flaky. Even as I write this the webpage will scroll up and down almost at random. The same goes for my terminal. I will try to type, and the terminal will start paging and ...
-1
votes
0answers
17 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
18 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
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 ...
0
votes
2answers
38 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 ...
23
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 ...
1
vote
2answers
33 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
46 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
47 views

Running python module in gedit embedded terminal [on hold]

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 ...
12
votes
4answers
4k views

How do I swap mouse buttons to be left handed from the terminal?

I am left handed person. Therefore I want to interchange the typical mouse buttons for right and left clicks. I want to do this via terminal. May someone please suggest the command for it? Is it ...
6
votes
3answers
248 views

Quick path jumping

I was just at a lecture, where I noticed the lecturer using a command (probably aliased) to jump to a specific folder. Example: ~/code$ j sciproj ~/projects/sciproj2011/$ This looked quite slick, ...
36
votes
6answers
6k views

How to copy a file to multiple folders using the command line?

I have tried to copy a file test.txt to multiple directories with one command: cp ~/test.txt ~/folder1 ~/folder2 But I didn't succeed. Is there a way to do that in one command so I can copy a file ...
9
votes
2answers
2k views

How to access gvfs mounts from command line?

I have some samba share mounted via Nautilus and I'd like to access the files from command line. They used to appear under $HOME/.gvfs but not any more. Where have they gone to?
7
votes
4answers
801 views

How to copy a certain file several times with a regular ending?

I have a single file (a PDF) and I want to have lots of identical copies in the same folder (200 would be nice) named file-001, file-002 etc. How do I do it?
17
votes
3answers
243 views

What is the $BASH_COMMAND variable good for?

According to the Bash manual, the environment variable BASH_COMMAND contains The command currently being executed or about to be executed, unless the shell is executing a command as the result of ...
3
votes
1answer
75 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?
9
votes
5answers
18k views

How to make Terminal semi-transparent?

I am running Ubuntu 11.04 with gnome 2.3 and I would like my terminal window to be transparent. The problems is the transparent settings in my terminal just shows the desktop background and not the ...
0
votes
0answers
22 views

Where to Start to create a Unity/Gnome3 Hybrid? [on hold]

First, is it possible to take some features from Unity, and some from Gnome3 and make a custom Shell? As background, I've been using Unity for a while, and was fairly satisfied with it. However, ...
2
votes
2answers
39 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
16 views

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

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
2answers
314 views

How to change the value of ~

by default ~ is given the value of /home/username/ i.e. If I use the command cd ~ it goes to the directory /home/username/ How to change the value of it to some other file such as ...
1
vote
2answers
690 views

How to pass string variable as parameter to awk

I have following command: usb_soundcard_sink=$(pactl list short sinks | grep "alsa_output" | awk '{ print $2 }' | tail -n1) output of this command is: alsa_output.pci-0000_00_1b.0.analog-stereo ...
0
votes
2answers
3k views

accessing MySQL using terminal in Ubuntu 13.04

accessing phpmyadmin db from terminal now in ubuntu 13.04 i firstly installed mysql server with sudo apt-get install mysql-server mysql server version 5.5 now in terminal i can check if it is working ...
2
votes
1answer
33 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
0answers
24 views

Can we delay a command in ubuntu [duplicate]

Consider any two commands. command 1 and command 2 with this script SCRIPT command 1 stop two seconds after execution of first command and then execute the second command command 2 Can we make ...
0
votes
2answers
24 views

Open terminal in 'always on top' mode on startup

I want Ubuntu to open a terminal in the lower right corner when I log in, with the always on top mode enabled. I have made a script which does this when I run it from a terminal, but it does not work ...
-1
votes
1answer
41 views

Running a program in background using command-line [duplicate]

How do I run a program in the background from a shell, with the ability to close the shell while leaving the program running which should not disturb the window i am working on? Lets say my UI is ...
0
votes
2answers
32 views

End script and restart it with the same options and arguments

Usually !! repeats the last given command. But it doesn’t seem to work in a bash script. Is there a way to end a script and repeat it with the exact same options and arguments given the last time? ...
0
votes
1answer
34 views

Run terminal command (python command) at start up [duplicate]

New to Ubuntu, but have looked everywhere to get this question answered. Found no solution so far. Basically I need to run two terminal commands on startup, which follow each other directly. This will ...
8
votes
4answers
2k views

Is there a command-line tool which returns the colour of the pixel based on screen co-ordinates?

Is there a command-line tool returns the colour value of a pixel, based solely on its screen co-ordinates. Is there such a tool? (Also: The tool should not require any user action. It is to run in ...
0
votes
0answers
50 views

Ubuntu doesn't load, can't even open a terminal to type commands, even after boot repair

When I start Ubuntu I only get my desktop picture and am unable to open a terminal to type any commands. When I try a Guest session all I get is a red Ubuntu backdrop, nothing else. I tried boot ...