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

learn more… | top users | synonyms (6)

2
votes
1answer
40 views

predefined input in a nohup shell script

I am trying to write a shell script that I can then nohup as it is supposed to run for hours. I am a shell novice so I'm struggling with this a lot. The script should first open some software (ACE ...
2
votes
1answer
26 views

Is there a maximum amount of time that tail -f can reliably run?

I have noticed that when I tail -f various log files (specifically Apache access/error logs), that it ceases to actively scroll output after a certain of number of hours. I am uncertain if this is a ...
2
votes
1answer
66 views

How to downgrade/unpatch bash for ubuntu 12.04 LTS to get back to the original vulnerable version of it?

I am using Ubuntu 12.04 LTS. I tried resolving the the shell-shock vulnerability of environment variables by updating bash. Is there any way to downgrade the bash and again try and demonstrate for the ...
2
votes
1answer
119 views

Howto: execute a custom application from pcmanfm in lubuntu

I run Lubuntu 14.04.3 LTS and I have downloaded and installed castnow to stream videos from my PC to my Chromecast. The only alternative I know is to do this via Videostream using Chromium. But that ...
2
votes
1answer
40 views

In ubuntu server, clear console when returning from application

In the console in Ubuntu Desktop, when I return from an application like Vim or Tasksel, it clears the application and the console picks up where it left off before the application started. In Ubuntu ...
2
votes
1answer
270 views

New to Ubunutu, problem installing VMware

I want to be able to run Windows 7 right off the windows OS. I installed the VMware workstation pro 12 64 bit (from http://www.vmware.com/products/works...ion-evaluation), and then tried both of these ...
2
votes
1answer
72 views

Ubuntu Server LibreOffice Convert to txt Error

Running headless (only option since on server 14.04) trying to convert .doc files to .txt to be able to be ingested by php. Running the soffice --headless --convert-to txt test.doc produces a ...
2
votes
1answer
64 views

Beep command works but the bell character doesn't

After reading this answer, the beep command successfully makes a sound. http://askubuntu.com/a/168628/445574 But when I print the bell character, it doesn't make any. I've already tried: ...
2
votes
1answer
101 views

How to log in to an internet provider with with a password and user name through terminal?

I have an account through a wire network internet provider - a person that have an internet LAN and share it with neighbours in exchange with money - every one of us have an account and a password , ...
2
votes
1answer
100 views

parse webpage upto n levels using wget

I am trying to extract URLS from a webpage up to user defined n levels using wget. I tried this wget -r -l$2 --reject=gif -O out.html www.google.com | sed -n 's/.*href="\([^"]*\).*/\1/p'` " It is ...
2
votes
1answer
72 views

how to take the total working hours of the system in a day?

I need to take the total working hours of the system in a day. That means, take time between power on and shutdown and also subtract the time of system were suspend. Final output must be total working ...
2
votes
1answer
131 views

Path given in Environment variable shows empty after reboot

I am trying to set environment variable CATALINA_HOME for tomcat server. I used the command CATALINA_HOME=/usr/local/apache-tomcat-8.0.22 JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386 and export ...
2
votes
1answer
279 views

Connect netbook to mobile internet via sim

I have a HP mini 210 running ubuntu. My netbook has a sim slot and thus I want to connect it to mobile internet. How can I do so?
2
votes
1answer
197 views

How to specify which child terminal gets focus on terminator startup

I have a terminator layout which looks like this: +-----+-----+ | | 2 | | 1 +-----+ | | 3 | +-----+-----+ When I start terminator, child terminal 3 receives focus. Is there a config ...
2
votes
1answer
439 views

how to create a symbolic link that works relative to the working directory

consider the following : x/ ph/ file1.txt -> ./../file1.txt file1.txt y/ ph/ -> /x/ph/ (this is full absolute path of x/ph) file1.txt /y/ph is a symlink for ph folder ...
2
votes
1answer
135 views

sed to execute a command as replacement with substitution pattern as argument

I am trying to replace time in a log file by: cat mlog.log | sed -e "s/^[0-9\.]*/\$(date -d @&)/" Why it always first execute $(date -d $&) but not doing replacement at first and then ...
2
votes
1answer
102 views

Automatic User Creation for SSH Server?

I'm trying to setup an SSH server which, upon an attempted connection with the correct public key, will create a new user account if one does not exist. On connection I'd like a specific script to ...
2
votes
1answer
488 views

Can't use npm installed packages from command line

I installed node.js and npm recently and was trying to install the learnyounode npm package using sudo npm install -g learnyounode, but after installing I am not able to access it from command line. ...
2
votes
1answer
55 views

find a process' time in the current state

I'm Looking for a way to show the time a certain process is in it's current state. At the moment, I'm using the command: ps -A -o uname,pid,state,etime,cmd | grep -e pbs | egrep -v "grep" Which ...
2
votes
1answer
587 views

How to change my home directory?

I have a current /home/user/ directory for ~ but I want to change it to be at /user/home/ /user/home already exists. The option of using usermod is not going to work because I don't have access to ...
2
votes
1answer
205 views

How to run a complex command by xfce mail-watcher

I just installed the xfce4-mailwatch-plugin I would like to use the option "Run on click" to either switch to Thunderbird, or to open it if it is not currently running. The command I use for this is ...
2
votes
1answer
223 views

How can I open pdf files by default with foxit?

I'm new to ubuntu as I come from Win7. In win7 I was using Foxit Reader to open the pdf documents. Searching online I found this method to install Foxit. cd Downloads/ tar -xvf ...
2
votes
1answer
360 views

pdsh works well standalone, but doesn't work in script

I am trying to install hadoop via script on my small cluster [introduced in the book: Apache Hadoop Yarn]. I have set up ssh connect without password, and pdsh&pdcp are all fine if I use it alone. ...
2
votes
1answer
112 views

Emacs Keybindings for all Text Inputs

I type with ten fingers. I try to avoid all keys on the keyboard which are not easily accessible: Pos1 End1 Esc ... Up to now my fingers like the emacs key bindings, since they work in the editor ...
2
votes
1answer
1k views

How can I dump and restore MySQL databases to and from Dropbox from the command line?

I have a few MySQL databases that I would like to sync between two computers. What I'd like to do is be able to have a quick command or script on one computer that I can use to quickly dump the ...
2
votes
1answer
1k views

Fullscreen and Repeat Video with Totem Player

I want to open a video from command line and I want the video to be opened as fullscreen and be repeated forever. I searched for fullscreen, and found the --fullscreen switch in Totem. However, ...
2
votes
1answer
2k views

Command to send SMS from terminal Using Kannel + SMPP

I have Installed the kannel on my server, configured the kannel file as per the requirement. Started the Bearerbox and SMSBox, both boxes are running fine. Now I want to check if the SMS is being ...
2
votes
1answer
1k views

Trouble Installing Breach Browser

I have downloaded breach on my Linux virtualization in Parallels, but I can't seem to get it to run. I have done: sudo apt-get install chromium-browser cd <the breach download directory> ...
2
votes
1answer
53 views

tar delete progress not shown?

I was trying to use tar command , --delete option and met some problems. There are two things I don't understand: when using --verbose option with combination of --delete option, nothing shows as ...
2
votes
1answer
692 views

Is there a terminal commands cheat sheet application?

I stumbled upon a terminal cheat sheet here and I started wondering if there was anyway to display this in Ubuntu 12.04, much in the way that holding the [Super] key displays tips for window managing ...
2
votes
1answer
33 views

Running Upgrade via command

I was trying to run upgrade in ubuntu having run update via command but,afterwards, it displayed: ldconfig deferred processing now taking place please, what does that msg mean?
2
votes
1answer
481 views

How to reboot automatically and run terminal command(s) on startup?

So I run a Minecraft server on Ubuntu Desktop 12.04. It runs very well except every so often the computer does need a reboot, as it should considering it runs 24/7. I'm relatively new to Ubuntu ...
2
votes
1answer
514 views

Remove startup password when default login is command line

When I boot up my computer, it goes straight to the command line. I modified /etc/default/grub file from GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to quiet splash text. Can someone please explain ...
2
votes
1answer
593 views

Processing clipboard text through a script in between copy and paste

I want to intercept the paste event and run any text through my script. Use case is like this (assume I have a script somewhere which accepts text on stdin and turns 'world' into 'potato', writing on ...
2
votes
1answer
1k views

How to create a new logind session while running xinit from the console?

My current system boots to console and I do not want to use a display manager. After updating to Ubuntu 13.10, I realised that the ConsoleKit is no longer used for managing user logins and ...
2
votes
1answer
142 views

Why my gnome terminal is set to root by default?

When I try to open up a new terminal in Ubuntu to do some operations, it always defaults to an admin based terminal with [sudo] password for xxxxxxxx: $ I need a regular terminal. How do I do this? I ...
2
votes
1answer
1k views

How to control gnome-terminal from Python scrypt?

I am developing an application in PyGtk, and would like to launch a gnome-terminal and output commands to it. My user should then be able to modify the command, or maybe ignore using the up arrow ... ...
2
votes
1answer
177 views

How to make everything on stdout be read aloud (using espeak)?

I've got the eSpeak TTS system up and running, and I like it quite a bit. I'm wondering, is there a way to pipe EVERYTHING that gets printed to STDOUT to espeak? I'm trying to set up a system without ...
2
votes
1answer
264 views

Fn key doesn't work inside shell

I've installed Xubuntu 12.10 and I've occours that Fn key (I used that for type / ) doesn't work inside standard shell (but it works in the rest of programs). How can I fix it?
2
votes
1answer
492 views

No shell prompt in gnome terminal

I was a bit behind and spent yesterday and a lot of bandwidth with three upgrades from 10.10 to 12.04. Most things seem to work but when, I launch the terminal, a get a new window but there isn't a ...
2
votes
1answer
300 views

Terminal (Ctrl+alt+F1-6) text colour

Is it possible to change the default foreground text coulour in the F1-F6 Terminals or the machines bios colour? I Love Green on Black and change it in the konsole/uxterm/Term etc as soon as I install ...
2
votes
1answer
1k views

How to mount an external hard drive as root?

I recently changed my external hard drive so that it can be read/edited by all, not just myself. In doing so I think I made it so only the root user can mount it. When I tried to mount it today I got ...
2
votes
1answer
1k views

Remove terminal titlebar on Gnome without compiz

I can't seem to run compiz on my rig for some reason. I've installed Gnome 3 and I am running Ubuntu 12.10. I am pleased with the current setup but I would like to remove the titlebar from the ...
2
votes
1answer
935 views

Java console doesn't recognize arrow keys

I have some strange problems with a java console on my 10.04 server (it's actually the console of a minecraft-server, but I believe it's a general problem and not something minecraft specific): arrow ...
2
votes
1answer
205 views

Can only log-in through shell/terminal after doing dist-upgrade on ubuntu 12.04, can only connect to internet using phone modem through bluetooth PAN

I have 2 desktop environments installed, i'm using the x-swat version of nvidia drivers which also got upgraded after doing "sudo apt-get dist-upgrade". Now i can only log-in using the terminal. tried ...
2
votes
1answer
2k views

How can I change my keyring password from the command line

I'm having trouble with my screen freezing, and I think it may be due to the login keyring. Right now, it's asking for a new keyring (I deleted the old one), but the screen is unresponsive. The only ...
2
votes
1answer
410 views

How can I add a progress bar to md5deep?

I would like to implement a command line progress bar using pipe viewer or dialog GUI tool for the md5deep command. I tried the following : pv file.md5 | md5deep -X - -r Destination I was not able ...
2
votes
1answer
2k views

Shortcut to terminal/bash script without 'instant close'

I've created a desktop entry in ~/.local/share/applications. It looks similiar to the following: [Desktop Entry] Version=1.0 Encoding=UTF-8 Name=Crontona Server GenericName=CA Server Comment=BDAF ...
1
vote
1answer
34 views

How to send KDE5 desktop notification from a bash script?

I've tried a number of options, none of them worked: notify-send 'text' kdialog --passivepopup 'text' 5 qdbus org.kde.knotify /Notify event "event" 'app' "(" ")" 'title' 'text' 'pixmap' '' 5 0
1
vote
1answer
39 views

Some programs are running but not opening in the window?

I recently switched from windows to ubuntu.but everything seemed fine until I tried to open google-chrome which I downloaded from firefox and installed it via ubuntu gui package manager.but it doesn't ...