In linux prompt,we can type !mysql and so on to match a history command to save time.
Is there a utility for windows(XP to be exact) that enables this feature?
On a debian server, I have unionfs mount with no entry in fstab. How can I figure out the command, that was used to mount unionfs (or which directories make up the union) ?
I'm looking for a music player for my Ubuntu Karmic desktop. I need the following features:
supports multiple playlists
remembers the playback position (file and time) for each playlist
preferably, remembers playback position even when the process is killed
lets the user adjust playback speed, without changing the pitch
I don't care if it's a GUI or command-line player or it uses a client-server model.
I've tried Rhythmbox, which doesn't have features 2., 3. and 4.
Which player would you recommend?
I know I can use sftp user@host ....
But what I want is to download a file from the existing session.
that is.
ssh user@host
... do some work ...
The main problem I have is that said file is under root on the server so doing a sftp command is not that simple.
I'v allowed FTP ports 21 and 20 which then allows me to connect to my FTP server via "ftp" command, but I still can't get curlftpfs to work.
What ports does curlftpfs all use?
Or is their something else I have to do with iptables to allow curlftpfs?
When I hit Start-Run and type "Chrome", nothing happens (no new "chrome.exe" process is launched, not error, nothing).
When I hit Start (without "Run"), type Chrome and run it, it works.
How do I find what shortcut is run via Start-Run ? When I open a command prompt and write "Chrome.exe", it doesn't recognize it as an executable program.
Here's what I want to do:
Hit Windows.
Type in a search for a file.
Select the file (arrow keys).
Open the file's containing folder
without right-clicking (like in
Spotlight with Command +
Enter).
I am currently at a loss as to why this is happening.
I did some basic research by running:
whereis javac
-and-
find / -name javac
...and I came up with nothing
I searched the web for answers but they all seem to focus on javac existing on the filesystem, and that needs to be done is to restore a missing sym-link.
Has anyone run up against this issue and found a solution ?
I have attempted to install openJDK on Scientific Linux 6.3 with the command:
yum install openjdk
Thanks!!!
In emacs, there's a helpful command called hs-hide-initial-comment-block that will fold a comment block if it is the very first thing in a file. This way, I can get straight to the code without having to worry about the licensing comment. Is there any way to do this in vim?
I've tried everything but I can't get MacBook 1,1 (which was running leopard) to boot os x after installing windows 7. I had the drivers for windows in a .pkg file and didnt realise it won't install them in windows. I am totally stuck with a half usefull windows system, any help would be greatly appricatet. Note: I've tried every startup command (ie hold x, hold option, hold c)with no joy, my head is wrecked
I've installed TOra with a tutorial I found. So, to start TOra, I've to go to terminal and type following command
'/usr/local/tora/bin/tora'.
I want create a applicaion link in desktop to TOra.
I tried creating application link but in terminal I see following
/usr/local/tora/bin/tora: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory
help
I am looking for a GUI tool in Windows, where I can do search and pass the result to next search and continue. I know I can do this in command line by piping one search result to another, but I am looking for a GUI tool.
Here is a sample search,
I would like to find all files that has extension ".java".
From the result, find all files that has a specific word.
From the result, select few files, and search only those files with another keyword.
Method 1: Via apache2.conf (or httpd.conf):
<Directory "/var/www/html">
Options Indexes FollowSymLinks -MultiViews
AllowOverrides None
Order allow,deny
Allow from all
</Directory>
Method 2: Chmod in the command-line.
Doesn't both these methods accomplish the same thing?
And another Q if you can answer it, what permissions is the var and www folder usually set to?
Thanks
Sir
I am trying to setup a Rsyncmirror on my mount drive /mnt/Mirror/ubuntu_mirror .so I am trying the command
rsync -a --bwlimit=128 rsync://archive.ubuntu.com/ubuntu /mnt/Mirror/ubuntu_mirror
but it shows error
rsync: getaddrinfo: archive.ubuntu.com 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(122) [Receiver=3.0.9]
can anyone help me..
Thanks.
I have a file on server A which needs to get to server B in an area which I only have sudo access (i.e. I have a user account that has root privileges with sudo). what is the syntax for the scp command?
As developers we sometimes need querying LDAP. Do you know useful tools for this task?
edit: I don't mean in code, I mean utility/tool (command-line or gui, mostly gui) for just to look/confirm data, or if possible to alter...
I'm trying to learn how to use screen, in unix so that I don't have to open up several ssh connections and terminal windows just because I want to do more than one thing at the same time on a machine. I have found the split command quite useful, but I have a problem I can't seem to figure out of... how do I unsplit??
I can split split using ^A S and switch between them using ^A ^I, but can't figure out how to remove a split...
If I can't ssh as root to each of my servers how can I make modifications in an efficient way?
I am not allowed to setup ssh keys or open the sudoers file with NOPASSWD. I can't install puppet or spacewalk.
Sometimes when I try to include a sudo command in a script I get the error "no tty present." Has anyone worked in an environment like this?
This question is an exact duplicate of:
Find all duplicate files by md5 hash
1 answer
I have a folder with osme images. Each of them has a different name but some of them are duplicate.
What is the best way to delete the duplicates? I have to do it sistematically so I need some shell command/script to invoke.
No limitation of used software, just no strange software..
I'd like to do it both in a Mac and in a Ubuntu systems
Right now I am using these values:
# y = c * p / 100
# y: nagios value
# c: number of cores
# p: wanted load procent
# 4 cores
# time 5 minutes 10 minutes 15 minutes
# warning: 90% 70% 50%
# critical: 100% 80% 60%
command[check_load]=/usr/local/nagios/libexec/check_load -w 3.6,2.8,2.0 -c 4.0,3.2,2.4
But these values are just picked almost random.
Does anyone have some tested values?
i following the tutorial of the
http://www.howtoforge.com/mirror-your-web-site-with-rsync-on-fedora-10
i have completely step by step following the instructions and setup the key, script
my problem is when i use server1 to type the command , it still prompt me for password.
then i look the /var/log/secure, i 've found the message
Authentication tried for root with correct key but not from a permitted host (host=123132132312.static.ctinets.com, ip=20x.80.236.xxx).
can anyone help?
Hey I have four computers(with linux):
two with mediawiki(mirror, both connected to one db)
one with mysql
one server(DHCP,DNS etc)
I configured on my server load balancer and now hen I type in browser name.local for example I get one of my mediawiki servers. I press f5 really fast and then I see in top command both computers are being loaded but not much. I used tool ab (apache benchamrk) but if I run it always is connected to one server never alternately.
I use this settings:
ab -n 100 -c 10 http://name.local/
I'm trying to execute double search within files and return file names.
I'm using
find ./ -iname '*txt' | xargs grep "searchtext" -sl
to find file names with 'searchtext' in them.
Command is returning a list of files.
How can I find "othersearchtext" in those already found files and show them in the same fashion?
#### EDITED
Answer:
grep -l "othersearchtext" $(find ./ -iname '*txt' | xargs grep "searchtext" -sl)
I have installed windows XP in virtual box and basic operating system is ubuntu
In XP when I put any pendrive it doesn't read that.
How can I fix this problem so that pendrive can be read in XP also ?
any command ????
I am writing a RHEL kickstart script, and in my %post, I need to install a JRE.
Basically, the current setup involves me needing to manually go in after first boot and set the newly installed JRE as the default using the alternatives --config command. Is there a way for me to pass arguments to alternatives so I don't have to manually pick the correct JRE?