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

learn more… | top users | synonyms (5)

1
vote
2answers
394 views

Disable desktop environemnts and customize startx

Is it possible to install ubuntu12.04 normally and then disable the desktop environments somehow, so that startx doesn't bring up unity or gdm or anything like that? I'm aware of ubuntu alternative ...
0
votes
1answer
45 views

Looking for non-gui utility application

I'm searching for application (if exists). It should appear after pressing previously customized keys, and will have non-gui (aka command shell) (but it should be have 'buttons' like in GRUB 2), it ...
1
vote
1answer
329 views

“load” a URL in terminal

I put "load" in quotes because I'm not trying to open up a website via terminal. I have a PHP script on a web server that logs to a text file when it has been loaded. I'd like to set up a cron on a ...
13
votes
3answers
31k views

Generate md5 checksum for all files in a directory

I would like to create a md5 checksum list for all files in a directory. I want to cat filename | md5sum > ouptput.txt. I want to do this in 1 step for all files in my directory. Any assistance ...
-1
votes
1answer
481 views

Run shell commands from browser [closed]

I'd like to access the terminal from Firefox specifically. I only have access to firefox, I can't access terminal on its own.
4
votes
1answer
2k views

wait for dd command to fully write to the disk

I'm using the dd command to create a bootable usb from iso file: sudo dd if=~/Desktop/ubuntu.iso of=/dev/sdx bs=1M After pressing enter it momentarily exits and gives me: 915+0 records in 915+0 ...
0
votes
1answer
43 views

what problem should/can I solve first?

I am currently running Ubuntu 13.04 x64 with brand new hard drive to replace a damaged component, on my 17.5 inch wide screen gateway laptop with mostly after market components. can not remember the ...
2
votes
1answer
327 views

Is it possible to make the text in terminal invisible?

I would like to know to make the text in terminal invisible. That's it just to make it invisible, not to change it's color to hide it with the back ground, but completely invisible. Thanks
5
votes
3answers
185 views

Using popd without removing last value

How can I get the behavior of using popd without actually popping the last directory off of the stack? In other words, I want to navigate back to the last directory that I set with pushd, but I want ...
1
vote
1answer
49 views

Opening two applications with single click?

I want to open firefox with few websites and eclipse with single click of .sh file. I am trying the following command: eclipse firefox http://localhost/wp3.5.2/ http://localhost/wp2/ They work ...
1
vote
2answers
426 views

Command for opening application using java through terminal?

I downloaded Tomighty(pomodoro app) on my Ubuntu 12.04. Everytime i have to start tomighty, i have to right click on the tomighty's jar file and click on open with sun java 7. is there any command ...
1
vote
1answer
5k views

How to download a .tar.gz file from a redirected link in terminal?

I want to download the file at http://www.snort.org/downloads/1806 as a .tar.gz file using terminal but the problem is that when I use: sudo wget http://www.snort.org/downloads/1806 It downloads a ...
1
vote
2answers
6k views

Xubuntu 13.04 boots to command line instead of GUI. How to get back GUI?

I have Xubuntu 13.04 on my desktop as a dual-boot system with XP. Installed it at first time two days ago and suddenly got this problem. Write my question from good old troubleproof Windows XP (long ...
0
votes
1answer
57 views

Controlling a loop and saving the output for each event

How can I control a loop and read live feed from a usb port and save each of the output when the usb is inserted or removed. I know the code below can be improved, please assist. #!/bin/bash ...
1
vote
1answer
2k views

Fern-wifi-cracker won't install

So i tried to install Fern wifi cracker but it won't let me install it and i get this; root@john:~/Desktop# dpkg -i Fern-Wifi-Cracker_1.6_all.deb Selecting previously unselected package ...
0
votes
1answer
55 views

Updateing package by sudo command in 13.04

I used the sudo command in terminal to update the software after upgrading from 12.10 to 13.04 and it gave me this error: Errors were encountered while processing: ...
1
vote
1answer
2k views

How to colorize Xubuntu13.04 terminal? [duplicate]

On some pictures from the Internet there are colors in terminal. Even Cygwin under Windows has colors in its terminal. Here a pic from the Internet, for example: I have installed Xubuntu and my ...
0
votes
1answer
183 views

How do I add a custom color to this script?

This is the script. Does anyone know how I can change the color of the text so when I open it in terminal it changes the color? #!/usr/bin/expect -f spawn -noecho bash expect "$ " send "put what ...
0
votes
2answers
7k views

Stuck on “waiting for apt-get to exit” in Software Centre [duplicate]

I'm trying to download something, and it's stuck on "waiting for apt-get to exit". Also, when I'm trying to use the terminal it says "unable to lock the administration directory" after I type in a ...
2
votes
1answer
446 views

How to run specific commands without to press enter key

How can I run a specific command in terminal without to press Enter key after I typed the command?
4
votes
1answer
631 views

Arrow keys in Terminal shortcut don't work

I am new to Linux and am using Ubuntu 13.04. I have a C++ program named "dictionary" (full path: /home/anmol/Desktop/c++/dictionary), which I compiled with Code::Blocks IDE (and GCC version 4.7.3). ...
0
votes
0answers
35 views

what does this command do, and should i execute it from terminal? [duplicate]

The command is in the following quotations :(){ :|: & };:. I have a bunch of questions. What does it do? Is it harmful? What is it, anyway? How does it work? What should I know about it? What ...
-1
votes
1answer
134 views

How can i become root at all times in terminal

I want to know how i can become root at all times in terminal without having to type in my password or typing sudo. Thanks :D
2
votes
1answer
85 views

how to make it to start up like this 'john@john:~/Desktop$ blah blah blah [duplicate]

When I start the Terminal I want it to start up like this john@john:~/Desktop$ blah blah blah without executing the command so I tried to do this sh -c "cd ~/Desktop;blah blah blah; exec bash" but it ...
2
votes
1answer
945 views

How do i start terminal in desktop

So in Terminal I created a new profile and I wanted it to start up to the desktop directory so I can just enter the filename I wanted to run instead of typing cd Desktop. So this is what i did: Edit ...
9
votes
4answers
3k views

How do I set the prompt to use two colors?

However, one thing I liked about Mint was that the terminal would usually show two colors: everything from the left to the $ would be one color (green, I think), and everything past the $ would be ...
6
votes
2answers
8k views

Explanation of the chcon command

Hi could somebody explain this command. chcon -R --reference=/var/www/html/ /var/www/html/install I have read the explanation given in the book But I am unable to understand it clearly. Please use ...
5
votes
3answers
1k views

Going to the parent directory of a file with cd?

I am writing a .sh to do some work for me, but I am now at the point where I have to cd to the directory the file /path/to/file.end is in. terminal doesn't allow cd /path/to/file.end bash: cd: ...
0
votes
1answer
380 views

set desktop font via command line and without gnome-settings-daemon?

i've switched from unity to i3wm and i'm really enjoying it however there is a slight problem: i can't set the desired desktop font without running gnome-settings-daemon. and at the moment this is the ...
2
votes
1answer
771 views

Can I allow a standard user to execute only certain sets of command in terminal? [duplicate]

Can I create a whitelist of commands that a standard user can execute in the terminal in Ubuntu 12.04 desktop? I don't want to block the terminal for the standard user.
1
vote
4answers
250 views

How to search a file in multiple jars

Want to search a file inside a set of jar files. How this can be done in ubuntu termianl?
0
votes
2answers
472 views

Why syntax error near unexpected token `fi' is coming

This is my simple script but it is saying that syntax error near unexpected token `fi' mysql --user=root --password= erpint -B -e "select * from user_info;" | sed ...
1
vote
1answer
102 views

VIM Overwrite instead of edit

I am currently running the following two commands. \rm myfile vim myfile Then, i, to enter insert mode, and ctrl-shift-v to paste Basically I have text on my clipboard that I would like to copy ...
4
votes
3answers
518 views

tmux becomes unresponsive when tailing a quickly updated file

I have a log file that I am writing a few hundred lines to a second. I want to tail this in a tmux pane. However, when I do this tmux becomes unresponsive - I can't change panes or windows and I ...
0
votes
1answer
629 views

How can i prevent standard user from accessing terminal?

How can i prevent/restrict standard users from accessing terminal in ubuntu-12.04.2-desktop-i386 ? I need to prevent standard users and administrators(not root account) in Ubuntu user accounts from ...
1
vote
1answer
2k views

I need to use sudo for any Hadoop operation, how to change permissions?

I am self learning Hadoop, starting yesterday. For the purpose of learning, I have set up Ubuntu 13.04 64-bit on VMWare Fusion on my MacBook Pro. And I am following this excellent tutorial. Before ...
1
vote
1answer
141 views

Driver updating

I need to update the drivers being used by my Dibcom 7000 DVB card. I have the drivers but cannot copy them to the correct directory. I seem to not have the correct rights. How can I change my rights ...
0
votes
1answer
524 views

Startup Applications with zsh and xmonad

I'm running Ubuntu 12.04. I use zsh as my shell and xmonad as my window manager. I don't use gnome or any other desktop environment. I'd like to declare some 'startup commands.' By this I mean, after ...
6
votes
1answer
7k views

Open Terminal with multiple tabs and execute application

I am new to linux shell scripting. I want to write a shell script which will open terminal with multiple tabs; it should run rtsp client app in each tab. For this, I have gone through question here ...
5
votes
2answers
12k views

bash command for each file in a folder

I have a set of files on which I would like to apply the same command and the output should contain the same name as the processed file but with a different extension. Currently I am doing rename ...
2
votes
1answer
165 views

PHP interactive interpreter: Delete and Ctrl +Aarrows keys don't work properly

When running PHP interactive interpreter with: php -a Delete button doesn't work (produces ~ instead), jumping over words with Ctrl+Left Arrow and Ctrl+Right Arrow doesn't work either (;5D and ;5C, ...
0
votes
2answers
1k views

Where should I add/modify environment variables?

I would like to edit my .bash_profile file. However it appears that in Ubuntu (and perhaps other Debian distros) this is named as .profile. However I cannot seem to find the expected variables like ...
2
votes
1answer
7k views

How to run deluge from CLI?

I want to run deluge in tty3,4,5 . but when I type it there is, No display warning. Then I give top and there is no pid on deluge that is deluge is not running. How do I run it from CLI so that it ...
4
votes
2answers
406 views

Can't add more than eight keyboard layouts

I read this article where is a workaround to add maximum eight keyboard layouts. But my questions are: I would like to try this, but I see they've written there something with "gnome" in the ...
1
vote
1answer
173 views

Trouble working on wordpress development locally due to file permissions

I am a newbie wordpress developer switched to ubuntu 12.04 from win 7. I find these root file permissions really difficult to deal with. i installed geany but can't open root files with it. How do ...
1
vote
1answer
3k views

when I run a bash file manually, it works, but crontab can not run it?

This is my sh-file: http://paste.ubuntu.com/5816543/, that I use this to download youtube files in a specific period per day. when I drag the file (y.sh) into the terminal and press return key, it ...
4
votes
1answer
1k views

On terminal, to disable ALT to show menu tabs

I prefer on terminal using ALT-b to move to previous word/space (I'm not sure if this is normal behavior of terminal but at least on Gnome I can do that). But on unity pressing ALT only shows the menu ...
2
votes
2answers
2k views

How can I run sudo gedit as gksu gedit

I'm looking into ways of automatically loading Gedit as gksu gedit when I enter sudo gedit by mistake? I have found that I have made a number of files unreachable by using gedit and I have only just ...
2
votes
1answer
184 views

How do you run an installer?

we bought a CrashPlan-Install program for backing up the computer. Since I am still learning about Ubuntu, I don't know how to run the installer. These are the only instructions that I have- To ...
0
votes
2answers
5k views

Command Not Found when running 'svn'

I installed the Ubuntu 12.04 from a usb drive. I am having issue with my wifi connection. I tried to update the network adapter but ran into this problem with the svn command. sudo svn checkout ...