How To Run Program From Command Line?
location: linuxquestions.com - date: April 16, 2005
I am new to using the command line. What do I type to run a program? I have navigated to the program's directory on a CD.
How to flush cache of harddisk and flashdisk (or filesystem) from command line?
location: linuxexchange.com - date: March 5, 2010
I'm writing a backup script which
Copies the data to backup disk.
Flushes the backup disk.
Performs a hash integrity check.
Before I used to do sleep(60) for waiting a minute so that data is automatically flushed by the kernel. Which I guess is overkill so now I'm trying sudo hdparm -F --verbose /dev/disk but it reports error - HDIO_DRIVE_CMD(flushcache) failed: Invalid exchange multiple times.
I'm wondering is there any standard way to flush the cache to hard disk. I think there is because usb-creator-gtk does it, umount does it.
I'm using Ubuntu x64 9.10
PS: I'm trying to avoid "sync" because this page says that it is not safe. http://ubuntuforums.org/showthread.php?t=589975
How to find the mysql data directory from command line in windows
location: linuxexchange.com - date: November 24, 2014
In linux I could find the mysql installation directory with the command which mysql. But I could not find any in windows. I tried echo %path% and it resulted many paths along with path to mysql bin.
I wanted to find the mysql data directory from command line in windows for use in batch program. I would also like to find mysql data directory from linux command line. Is it possible? or how can we do that?
In my case, the mysql data directory is on the installation folder i.e. ..MYSQL\mysql server 5\data It might be installed on any drive however. I want to get it returned from the command line.
From command line, how to know which Firefox version is installed in windows/linux?
location: linuxexchange.com - date: February 18, 2014
I need to know which Firefox version is installed on my system from command line of Windows
How to resume CUPS printer from command line?
location: linuxexchange.com - date: February 13, 2012
I have printer in CUPS that due to driver problems (HP 1010) from time to time goes into pause.
I would like to write a shell script that will execute once per hour to resume a printer in CUPS. But I have no idea after googling for couple of minutes how to resume printer from shell command line.
Launching custom desktop from command line with Ubuntu 13.04
location: linuxexchange.com - date: June 21, 2013
I am trying to learn Linux, especially the cli and I have customized my grub file and replaced "quiet splash" with "text".
This has given me the ability to launch Ubuntu into cli only mode. When I run the startx command it launches a blank/default desktop. Is it possible to launch the same desktop I would see if left the "quiet splash" value in place.
In other words can I launch the desktop complete with the sidebar, time, short cuts and other stuff?
how to change the android emulator ram size from command line?
location: linuxexchange.com - date: June 13, 2012
I want to edit or change the ram size while creating the android emulator from command line.
EX: While creating the emulator it's taking default ram size(Android SDK 4.0.3) 512 MB
But I want to increase it to 768MB or decrease it to 256MB.
I want to change only Ram size. Because there is an option to change the Ram size.
Do you wish to create a custom hardware profile [no] Yes
If you entered yes, we need to provide so many things.
Change default font to Ubuntu Font from command line in Gnome
location: ubuntuforums.com - date: October 11, 2010
I know that we can change the default font from "Appearance Preferences > Fonts" but I'd like to do it from the command line.
Also, given that the new Ubuntu Font doesn't have a fixed-width font yet, I'd like to do it as follows:
Application font: Ubuntu : 11
Document font: Ubuntu : 11
Desktop font : Ubuntu : 11
Window title font: Ubuntu Bold : 11
Fixed width font : Monospace : 10
Besides enjoying command line configuration, my reason for asking this is I've started making a regularly remastered, redistributable DVD of Ubuntu Lucid with all the updates, etc., and whatever I can do by command line just saves me doing it post-installation.
Thanks to anyone who can help me.
How can I delete a Mac OS X Snow Leopard user account from Command Line?
location: linuxexchange.com - date: October 31, 2011
I need to create a script to delete Mac OS X users automatically from command line, not from GUI, just in Terminal, but I haven't found how to do it in Snow Leopard.
NFS Call to exportfs from command line, nfskernelserver refuses to start
location: linuxexchange.com - date: June 7, 2015
I'm playing around with NFS (learning purposes) on Ubuntu 14.04.02 server. I'm trying to export a share from the command line, without configuring it in /etc/exports - but nfs-kernel-server is refusing to start. Any ideas?
I'm specifically asking about how to make this work without putting configuration in /etc/exports.
# new lvm volume, mounted to /mnt/raid-vg/test
$ sudo lvcreate -L 10G -n test raid-vg
$ sudo mkfs.ext4 /dev/raid-vg/test
$ sudo mkdir -p /mnt/raid-vg/test
$ sudo mount /dev/mapper/raid--vg-test /mnt/raid-vg/test
# bind mount to /srv/nfs/test
$ sudo mkdir -p /srv/nfs/test
$ sudo mount --bind /mnt/raid-vg/test /srv/nfs/test
# export the share
# - this should start nfs-kernel-server, shouldn't it?
# - return status is 0, no errors
$ sudo exportfs *:/srv/nfs/test
# display a list of nfs exports
# - won't run, nfs-kernel-server not started
$ sudo showmount --exports
clnt_create: RPC: Program not registered
# display the nfs-kernel-server status
# - not running
$ sudo s
Page: 1 2 3 4 5 6 7 8 9 10