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

learn more… | top users | synonyms (5)

1
vote
1answer
20 views

start-stop-daemon keeps editing my shebang making it impossible to run

start-stop-daemon --name flaskserver --start --chuid root --exec /root/worker/start.sh start.sh clearly has this line #!/usr/bin but after I run above, it results in !/usr/bin and of course it will ...
5
votes
3answers
160 views

How do I make a custom path identifier?

To define what I mean by "custom path identifier", I mean a short set of character(s) that represent a whole path, and example of this would be the ~, if you type cd ~ in your Terminal Emulator it ...
0
votes
1answer
35 views

Redirect terminal through tor?

There are some sources blocked in my country. So when I do apt-get update I get th ane error below: alexander@Alexander-PC:~$ sudo apt-get update [sudo] password for alexander: Ign ...
0
votes
1answer
20 views

unable to boot into ubuntu or shell

Okay so let's start off with why im an idiot: I used sudo mv /lib/ld-linux-x86-64.so.2 lib64 I realize how stupid this is but it's what I did and now I just want to fix it. I attempted to move ...
1
vote
2answers
52 views

Can't find programs I installed [duplicate]

I need help learning how to install programs without software center. Or at least finding a couple programs I just installed. I downloaded he Forio IDE for Julia, and have no idea whether or not it ...
0
votes
0answers
28 views

Init.d script not updating git repository

I have the following init.d script running on my ubuntu machine: # /etc/init.d/do-updates cd /home/ubuntu/Fox;git pull sudo /home/ubuntu/Fox/batch_update_process.py 1>> ...
1
vote
2answers
69 views

Install GNU Scientific library (GSL) on Ubuntu 14.04 via terminal

I am trying to install GSL libraries on Ubuntu 14.04 via terminal. I searched on Google but I couldn't find any command which can install it from the terminal but just through the Ubuntu software ...
0
votes
3answers
294 views

Read a part of massive online CSV file using its URL from command line

Is there any way that I can read a few lines of a massive online CSV file using its URL from command line before I am going to download it?
0
votes
0answers
8 views

i only have 1 dimension for my display, but not the good one

at display settings i only have 1 resolution: 1280x720(16:9). I use dual boot with windows and there i have plenty of resolutions. i need a rare resolution 1280x680. my question is, could anyone give ...
0
votes
0answers
28 views

Cannot install anything on ubuntu 14.04 LTS in software center or in teminal [duplicate]

When I try to install anything in the software center, I get an error message reading; "Package dependencies cannot be resolved This error could be caused by ...
2
votes
2answers
55 views

How accurate is epoch time in nanoseconds?

I wish to learn how accurate is the time that is been shown when typing date +%s%N in the terminal. I know this gives us the epoch time in nanoseconds but are the numbers real?. Does it represent ...
0
votes
3answers
65 views

List Installed Applications Grouped By Type

I want a list of the applications installed in my system, however, I only want the ones listed as per the start menu. I am not interested in a list of packages / dependencies etc so the following is ...
0
votes
0answers
72 views

After exporting $PATH, commands don't work anymore

Trying installing Java, I tried to add it to the executable path with the line: export PATH=/usr/lib/jvm/jdk1.7.0_60/bin:$PATH in the system-wide /etc/bash.bashrc file. For some reason this ...
0
votes
0answers
9 views

Ubuntu Terminal Colors Not Showing Even With Dircolor

1;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:'; ...
0
votes
1answer
36 views

system(“echo * > toto”) returns an error

when I test this command : system("echo * > toto") (the file toto exists) This error is returned : bash: syntax error near unexpected token"/bin/echo x"'` and I don't understand why. Thank you in ...
1
vote
1answer
125 views

Proxy authentication with terminal Ubuntu 14.04

I would like to access the internet to update files etc. from the terminal on a secured proxy network. I've already tried the following: Adding to /etc/apt/apt.conf, /etc/apt/apt.conf.d/01proxy, ...
0
votes
1answer
15 views

what's the best package to add to an Ubuntu VPS account to get a terminal window?

For my Pair Networks VPS (running Ubuntu 10.04 on AMD64), and working install details with its illustrious support team, I am interested in suggestions for a robust terminal quasi-GUI'd window package ...
0
votes
0answers
34 views

Alias's in .bash* not working

I am trying to create an alias and it does not seem to be working. I have tried it with both .bashrc and .bash_aliases. If I open my terminal and perform source .bashrc, then they work OK. What am I ...
4
votes
0answers
45 views

Launchpad: CLI “Copying packages”

I'm using Launchpad to upload a .dsc, a debian.tar.gz and a .orig.tar.xz. The orig archive contains both i386 and amd64 files, and I use debian/rules to build different architecture packages. But it ...
1
vote
0answers
17 views

Weird problem: can not connect network until a terminal is opened in Live system

Live system based on ubuntu server 12.04.2 with manual installed X and openbox. startx is in a shell script which is called in /etc/rc.local with su -l root -c /scriptsFolder/script.sh A program is ...
0
votes
0answers
16 views

How to fix frozen GUI from CLI without restarting/killing any applications?

After the killall nautilus command the GUI froze. I was running some applications for few days and it will take few more days to finish. Therefore. I do not want to restart the computer. I checked the ...
1
vote
2answers
42 views

Unable to run shell script inside VI/VIM

I am trying to run a shell-script say test from vim #!/bin/sh echo good morning Now when I am using :!% I am getting a pop like shell returned 1 Press ENTER or type command to continue instead ...
0
votes
1answer
25 views

can't cd to any directory inside home when using rbash

I just set a user to use rbash (I wanted to user to be able to access it's home directory only). However when I try to change sub-directory it always gives me: -rbash: cd: restricted The ...
0
votes
0answers
18 views

Virtualmin/Webmin on Ubuntu MYSQL server root user doesn't work anymore

I was trying to make some configuration from Webmin on my server and suddenly I don't know what I've done but I receive the following error: The full MySQL error message was : DBI connect failed : ...
26
votes
2answers
2k views

Why does the command “xterm xterm” create an infinite recursion?

I am running Ubuntu 14.04 (64 bit). When I first found out about the command xterm, I tried the command xterm xterm, and it started infinitely opening new xterm windows. ctrl + C stops it immediately ...
1
vote
0answers
27 views

How do I invoke Firefox in Ubuntu 8.04 Hardy Heron after an upgrade? [closed]

I have a Dell Mini 910 running Ubuntu 8.04 Linux (Hardy Heron). Awhile ago, I inadvertently deleted the FlashPlayer that came with it. (Of which version I'm not too sure of right now.) So... I was ...
0
votes
0answers
38 views

Copy symbolic link using install command?

Is there a way I can copy a symbolic link (as a symbolic link instead of the target file) using the install command? I have a slink in /home/user1/files/link.txt. I need to copy link.txt (which is a ...
1
vote
2answers
35 views

Echos, variables, and help with this question

The book Learning The Bash Shell says- "Notice that we used double quotes around variables (and strings containing them) in these echo examples. In Chapter 1, we said that some special characters ...
0
votes
2answers
43 views

Why can't I cd into any subdirectories of my home folder? [duplicate]

I am using Ubuntu 10.04.1 in a terminal window. When I am in my home user directory like /home/jeg#, I cannot cd into any directories below this. For example, if I enter cd downloads, or cd ...
3
votes
3answers
87 views

How can I start a script in a minimised Gnome Terminal?

I can start a command in a new Gnome Terminal as follows: nohup gnome-terminal --window-with-profile=Background --command ls >/dev/null 2>&1& (Based on ...
6
votes
2answers
542 views

How to prompt users with a GUI dialog box to choose file/directory path, via the command-line?

Suppose for example I have script like this: (The example depicts an rysnc use case) #!/bin/bash echo -n "Enter Source Directory:" read srcdir echo -n "Enter Destination Directory:" read dstdir ...
3
votes
4answers
218 views

Redirect an output to a file from command piping grep

I am running this: cat /dev/urandom|hexdump| grep -i "ffff f" > random and I get nothing in file random, it remains zero length after the command is interrupted. How to make it writing output ...
0
votes
1answer
26 views

Packages are not installling on ubuntu 12.04

I tried to install imagemagick using following command sudo apt-get install imagemagick --fix-missing But while installing I get following error nginx-full : Depends: nginx-common (= ...
0
votes
1answer
54 views

Error while using command line command to load firefox in lubuntu 14.04

I have tried to load firefox using command line command in Lubuntu 14.04. Firefox is loading, but not loading as expected.(used -fullscreen) firefox -fullscreen when I execute the command am also ...
2
votes
1answer
63 views

Ctrl Alt T no longer opens terminal

I wanted to change my computer name so I edited /etc/hostname and /etc/hosts and restarted. Ever since then, ctrl + alt + t no longer opens Terminal. I tried going into Keyboard and making a custom ...
1
vote
1answer
88 views

Dead ASUS laptop - Can I boot Windows from within Ubuntu terminal?

I have an ASUS laptop (model u56e, windows 7 64-bit) that is baffling me right now. I was recently on a trip, laptop working fine, though partitioned SATA HDD a bit overloaded with vacay pics. On way ...
0
votes
0answers
26 views

Rectangle is flickering while dragging mouse on screen

I wanto make a screencasting program. I want to make a screen part selection to grab coordinates of the screen location. I found a nice prototype here I am on Ubuntu 14.04 platform, I compiled and ...
0
votes
0answers
73 views

Black screen when accessing Ubuntu remote host via VNC and vino-server

I have a headless server and I am trying to setup a VNC connection in order to access it with a GUI. Now I have only root access via ssh. I have followed most of the instructions given here Enable ...
0
votes
1answer
55 views

No TTY after installing NVIDIA Driver

When I first installed Ubuntu 14.04, I used the command line to install the nvidia drivers to my computer. Now, if I try to open any of the 6 TTYs, I lose all display and my monitor cuts off until I ...
0
votes
0answers
10 views

Fluxbox aterm transparency

I set up a script that runs once fluxbox is started and it opens a terminal(aterm). This terminal is supposed to have a level of trasparency different than the others and it reamins in the ...
0
votes
1answer
33 views

Multiple background scripts in one command

I can run three scripts at once like this: python script1.py ; python script2.py ; python script3.py But when I try to run them all in the background, like this: python script1.py & ; python ...
6
votes
2answers
323 views

Using backticks or dollar in shell scripts

I'm busy writting shell script (using Bash) where I need to populate some variable from the returned result of other command. So I'm using a syntax like this one : VAR=`command 2>/dev/null` But ...
1
vote
1answer
68 views

terminal command to record video

I have cheese software in order to record a video and also take a picture from my laptop camera. But when you open that. you should do two thing: 1.Select video recording among its default taking ...
0
votes
0answers
14 views

Crash Software center [duplicate]

An error occurred, please run package manager from right click or apt get to see what wrong the error message was : Error:opening the cache(E:malformed line 57 in sources list ...
-1
votes
0answers
22 views

what do i do when my termanal gives me a package configuration [duplicate]

Package configuration ┌─────────────────┤ Configuring ttf-mscorefonts-installer ├─────────────────┐ │ ...
1
vote
0answers
43 views

Configure privacy settings via the command line

I am trying to compile a script to run upon booting a network attached computer (which has no hard drive and therefore is a new computer upon every reboot) to configure all settings. Because it will ...
2
votes
2answers
230 views

Convert seconds since epoch to a human readable string

Command date +%s produces 1403568422. Is there an easy way to convert the 1403568422 to a human readable UTC timestamp? python -c "import datetime;print ...
0
votes
1answer
179 views

TangoWithDjango .bashrc edit causing errors

I'm currently doing the Tango with Django module and I've edited my .bashrc as it lists. Appending [[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc to the end ...
0
votes
0answers
16 views

MacBook: Nano keyboard shortcuts changed

I recently installed Ubuntu 14.04 LTS on a MacBook Pro. In the terminal, I typed: sudo apt-get install nano nano When the text editor opens in the terminal, the keyboard shortcuts, e.g. ^X, do not ...
0
votes
0answers
24 views

Removig GUI and booting from Command Line [closed]

I am running an ARM version of Ubuntu provided by Linaro. I am not 100% sure on current version as I am reinstalling using the manufacturing tools. I do however was wondering if anyone could help me ...