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

learn more… | top users | synonyms (5)

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
118 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
44 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
39 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
86 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
534 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
217 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
82 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
25 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
68 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
53 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
32 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
13 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
228 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
178 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 [on hold]

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

How to save the contents of unlogged console screen to a file?

I'm on a tty, with a lots of command inputs, bulk of verbose their output, and some error messages. Now I have to get all those stdin/stdout/stderr texts, in the format displayed in the console ...
-1
votes
1answer
65 views

how to run local shell script over ssh with su option

I have a script called test_ms.sh which I want to run over ssh along with the su - username option. I am user X on server A and server B and I have su access to user Y on server B. I do not have ...
1
vote
1answer
114 views

using awk to print variable in loop

I am beginner in working with bash script. I have a data file: i z r 0 -30 3.5 0 -29.5 3.4 0 -29 3.6 ... ...
12
votes
5answers
885 views

Difference between +x and ./<script> and sh ./<script>

Are there any actual differences between running a script with [sudo] sh ./<script>.run instead of [sudo] chmod +x ./<script>.run [sudo] ./<script>.run
1
vote
2answers
22 views

mv files with | xargs

I'm just trying to move a bunch of files (not symlinks) out of my /etc/apache/sites-enabled folder into the /etc/apache/sites-available folder with the following: /etc/apache2/sites-enabled$ find . ...
0
votes
2answers
29 views

Terminal - Search entire directory for keyword

I am working on a Ruby on Rails project so I have to manage multiple files. I think I made a syntax mistake somewhere but I'm not sure well. It would be awesome if I could search for a keyword through ...
2
votes
2answers
151 views

No csh or tcsh?

In /bin, I see bash, but no csh or tcsh. When I created a ".cshrc" file in my home directory, it had no effect; that's how I discovered this problem. So the question is this: how do I switch to ...
0
votes
2answers
46 views

How to use Terminator's Options?

Terminator has one option http://linux.die.net/man/1/terminator --working-directory=DIR Set the terminal's working directory I want to open my Terminator within a specific directory each time and I ...
0
votes
2answers
79 views

Lilypond install not working

I'm trying to install Lilypond on a 32-bit system, and for some reason the sh file simply does not want to execute itself. I'm completely new to Ubuntu, so I have next to no knowledge of how anything ...
1
vote
1answer
46 views

.pigbootup not found

I have a problem trying to get this command to run. I've got all the files in the correct directories, and i'm running the command from within the correct directory. I've downloaded and unpacked ...
0
votes
0answers
25 views

Why is this error occurring when extracting sfx files?

I'm trying to extract an .sfx file. but when i use the chmod u+x command, I simply recieve this output. Please help me. I'm a noob with ubuntu, and linu ...
1
vote
2answers
80 views

How to execute a command several times in the terminal with/without a few minor changes?

Suppose that I want to execute the command ls ten times (despite of it being purposeless since it will only display the directory contents 10 times), is there an equivalent to writing the following: ...