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

learn more… | top users | synonyms (5)

-1
votes
0answers
11 views

Running python module in gedit embedded terminal

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 ...
6
votes
3answers
245 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, ...
7
votes
5answers
325 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
216 views

start only 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 ...
1
vote
1answer
49 views

How can I access my IP-cam with “motion”?

I'm using a cheap Hikvision 2032 IP-camera. The camera is set to IP 192.168.1.199. The mainstream I get (which is working in VLC) is: ...
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?
5
votes
4answers
758 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?
16
votes
3answers
215 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
72 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?
0
votes
1answer
15 views

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

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 ...
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
19 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, ...
0
votes
0answers
6 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 ...
1
vote
2answers
32 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
15 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
308 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
673 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
29 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
23 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
22 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
39 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
29 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
32 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
47 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 ...
0
votes
2answers
31 views

Unable to assign command output to a variable

I am trying to assign the latest file name obtained from the below ls command but getting some error, it would be very nice if someone can answer how can I fix this! fn=`ls -lrt ...
0
votes
0answers
14 views

Bricked - tty mode incorrect, terminal disabled, unity broken

After installing VirtualBox unity seems to be uninstalled.. Launcher and task bar are missing. I can't access terminal from the normal ctrl alt T command. I tried logging into TTY mode but it says my ...
0
votes
0answers
15 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
15 views

How to implement chat server application? [on hold]

how to create a chat server application? constraints :1.no user interface 2.using only data structures 3.even if receivers are online or offline 4.similar to ...
3
votes
1answer
3k views

view transmission status through cli

I have installed transmission, and i have added a torrent to it, now how will i be able to view the details of the torrents. i have tried transmission-remote on local system. m@m-170:/home/m/$ ...
-2
votes
2answers
63 views

Why do I have to use command line terminal for nearly every program install? [on hold]

I'm a PC Tech with DOS, Win and Mac experience going back to ~1985. Now I'm checking out the state of Linux for home PC's and I am setting up my 1st Linux PC since 2006. Reviews I found say Lubuntu ...
0
votes
0answers
19 views

Terminal flashing between current and previous screen

I just upgraded from Ubuntu 12.04 to 14.04. After upgrading the terminal will sometimes, but not always, flash between the current screen and the previous screen. Here are some examples: The output ...
5
votes
2answers
238 views

Execute command from file in current shell

I want to executed command from file (which is script) in current shell in terminal. Example: I have file ch_dir contains following: #!/bin/bash cd /usr Now if I execute file usually as following ...
9
votes
5answers
849 views

How can I make it so I can run a specific program, just by typing its name in the console?

I have just recently installed Light Table downloading it from the git repository, and followed the instructions on this website to create a desktop launcher. Now I want to run the program by ...
0
votes
1answer
19 views

How to Connect/Disconnect to WiFi Via Terminal [duplicate]

I just have a quick question that I have been researching for a while now... How do you connect/disconnect to a wifi network in ubuntu via terminal? I tried several commands that failed. I have been ...
0
votes
0answers
25 views

I can't get into the sudoers listings [duplicate]

I try to type a command, to get Pinta (because GIMP isn't here for some odd reason) (Command is sudo add-apt-repository ppa:pinta-maintainers/pinta-stable/ubuntu), and it says asbell is ...
0
votes
0answers
25 views

Terminal closing itself after 14.04 upgrade

All was fine in 12.04, in this case I'm using virtualbox in Windows. The upgrading process ran ok, no errors, no warnings. After rebooting the errors started to happen. Just after booting up there ...
0
votes
1answer
25 views

Need to copy firmware files at /usr/lib to /lib using terminal

I have a Cubox-i4Pro and I'm running Xubuntu on it. In order to get Wi-Fi working I have to copy the firmware folder "brcm" from /usr/lib/firmware/brcm and make the folder /lib/firmware/brcm. Refer ...
47
votes
8answers
44k views

Torrent client for the command-line?

Yesterday one of my friends asked me, if there is some torrent client, that runs on the command-line. I have no answer for him, but I think that you have it.
-1
votes
0answers
10 views

Terminal Keyboard Behavor [on hold]

How do I modify Terminal Keyboard Behaviors in Ubuntu Terminal? Example: in Terminal in OS X the backspace deletes in insert mode as well as moving one character backward.
0
votes
0answers
73 views

Ubuntu terminal and system monitor close unexpectedly

When I execute certain commands on the terminal, even typing just "find", the terminal closes instantly. I also can't open system monitor without it closing (but the window does flash for a second). ...
23
votes
3answers
1k views

Where should I put my script so that I can run it by a direct command?

Where can (should) I put my (bash) script so that it can be used (forever) by terminal or by a direct command: Alt+F2? I know there is /usr/bin and /sbin & /bindirectories but when should I use ...
0
votes
1answer
75 views

No GUI before login on Ubuntu 14.04

After I installed Ubuntu 14.04 as the only OS on my computer on nomodeset to install the Nvidia drivers for my video card. I installed it and all is working properly. The only problem that I have is ...
4
votes
1answer
49 views

Run several xdotool commands in one line separated from each other

I'm trying to run xdotool type word then xdotool key Return from Startup Aplications Preferences. But if I use && or ;, xdotool evaluates it as continuation of input.
11
votes
4answers
1k views

What does /dev/null mean in a shell script?

I've started learning bash scripting by using this guide: http://www.tldp.org/LDP/abs/abs-guide.pdf However I got stuck at the first script: cd /var/log cat /dev/null > messages cat /dev/null ...
0
votes
0answers
12 views

when building u-boot /bin/bash: arm-none-linux-gnueabi-gcc: command not found

I am currently running Ubuntu 12.0.4 on a 64 bit machine. I have an AM335X development board. Along with the kit came the compressed kernel (linux 3,2), rootfs, u-boot, and ARM cross compiler ...
0
votes
1answer
30 views

How to display all user and groups by command

I want to display 1. All users and 2. All groups in my pc by using command-line. users and groups displays users currently logged and groups a user is in respectively. How to display List of all ...
-1
votes
2answers
50 views

How do I know my MAC address? [duplicate]

how to check mac address of our system through terminal in ubuntu 10.04LTS ipconfig/all