I ran into the following issue by accident when playing around with the DIG command and testing some domain names.
Why does DIG hang and not timeout after 10 seconds when executing the following:
dig +tries=1 +tries=1 +retry=1 +time=5 +trace google.us.com
DIG hangs for about 30 seconds instead of timing out and then dies with the following error message:
dig: couldn't get address for 'ns.reserved-domain.uk.com': no more
Do I need to set another flag/option for DIG to have it timeout instead of hanging, or is this a bug?
DIG version: DiG 9.9.5-3-Ubuntu
From man watch:
Non-printing characters are stripped
from program output. Use "cat -v" as
part of the command pipeline if you
want to see them.
So how do I use cat -v if I want to see the colored output from:
watch ls -al --color
How can I change the value of, let's say, PasswordAuthentication in /etc/ssh/sshd_config in commands?
As well, remove a # in front of the "key" I wish to value. These don't all have to be in one command. I setup quite a few servers, and remembering where everything is gets exhausting, so I want to get a series of commands I can copy paste and it does the work for me for future reference.
Sample values:
PermitRootLogin no
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
UseDNS no
My goal is to find all pdf files on a remote machine, so I resort to the useful command find. So I type find ~ *.pdf or find ~ "*.pdf" and I get nothing. I do the same on my machine and I get nothing. I do a regular search from the menu on my machine and I find quite a few pdf files. Would somebody please tell me what am I doing wrong?
From time to time, I've encountered issues with OS X clients' network connections (Wired and Wireless, Leopard/Snow Leopard) where nothing will fix the issue, until you reboot.
Is there a particular 'network service/process' I should be watching out for?
I was thinking it would be useful to know of a command that will reset a 'network connection' type service/process (same as running a sudo /etc/init.d/networking restart).
Thanks!
What is the shortcut for removing the Windows boot screen logo during startup so that you can actually see all the command line commands that are running in the startup sequence?
Hi, I have the following command:
find Acc*\bin\Debug\*.pdb > temp.txt
Looking in temp.txt, I have:
Accounting/bin/Debug/Accounting.pdb
Accounting/bin/Debug/BackendProcess.pdb
NOTE the forward slashes. Why does it output file names like this? And how do I get it to output backslashes, so I can use del on those files?
Thanks
I'm trying to do Remote Administration of IIS in C#.NET using System.Web.Administration tools. Everything works fine on a test server (windows 2008), however when I try using our live server (windows 2003) it fails giving the message:
System.Runtime.InteropServices.COMException : Not enough storage is available to process this command. (Exception from HRESULT: 0x80070008)
The server itself has plenty of memory free, so I believe this is some kind of memory limit with the RPC itself.
http://support.microsoft.com/kb/890425
Is there any way around this?
shadyabhi@shadyabhi-desktop:~$ eject -v
eject: using default device `cdrom'
eject: device name is `cdrom'
eject: expanded name is `/media/cdrom'
eject: `/media/cdrom' is a link to `/media/cdrom0'
eject: `/media/cdrom0' is not mounted
eject: `/media/cdrom0' is not a mount point
eject: tried to use `/media/cdrom0' as device name but it is no block device
eject: unable to find or open device for: `cdrom'
shadyabhi@shadyabhi-desktop:~$
The tray doesnt open.. How do I open tray using command line?
I need to start screen with some bash command to execute.
Trying screen -S test -d -m bash -c './test.php'
but have no result, screen didn't apear.
Even more, let's that i need to start something like that
vlc -I ncurses --http-reconnect http://ip/ --sout '#duplicate{dst=std{access=http{user=,pwd=},mux=ts,dst=:51001}}' --ttl=255 --loop --repeat
I have a web application that runs a program which needs X. I'm using xvfb to launch it; I want to run it as another user.
I could probably do sudo -u username -p password my command. However, I'm not feeling too good about storing the users password in plain text.
Is there a "smarter" way of doing this?
I have a web application that runs a program which needs X. I'm using xvfb to launch it; I want to run it as another user.
I could probably do sudo -u username -p password my command. However, I'm not feeling too good about storing the users password in plain text.
Is there a "smarter" way of doing this?
Don't ask why, but I would like to know a linux command, besides "la -laR", since that could not take that long according to where you are in the folder structure, that takes much time to complete.
Thanks for your help.
I am using Curl, and am having a problem trying to get it to recognize the $http_proxy environment variable when using sudo curl. I tried putting export http_proxy=.... in my /etc/profile and restarting the shell, to no avail. I would rather not use su -l and run the command while logged in as root.
Does the VSFTPD server support Clear Command Channel (CCC) per RFC 2228?
If it does support CCC, does it need to be enabled? Or, is it enabled with the whole FTPS suite of configuration parameters?
Possible Duplicate:
What are PATH and other environment variables, and how can I set or use them?
I have the default package of Ruby installed that shipped with the OS, which is an older version.
I have recently installed MacPorts with the latest Ruby version which is installed in a seperate location:-
/opt/local/bin/
But when I run
which ruby
I get
/usr/bin/ruby
Is there any way to edit the path of the command ruby so it would reference the new installation in the /opt/ directory?
Thanks in advance.
I have an existing XP installation on a 160GB disk, with about 90 GB free.
I'm trying to install Win7 on the same HDD, following directions from here.
The question is: How long should it take to run the "shrink" command, given the above parameters? How much space will that free up for Win7?
This single-command BASH script file is difficult to understand, so I want to write a comment for each of the actions:
grep -R "%" values* \
| sed -e "s/%/\n%/" \
| grep "%" \
| grep -v " % " \
| grep -v " %<" \
| grep -v "%s" \
| grep -v "%d" \
| grep -v "%1$s"
I would hate having to duplicate lines, or having each comment far away from the line it applies to.
But at the same time BASH does not seem to allow "in-line" comments.
Any elegant way to solve this problem?
My goal is to find all pdf files on a remote machine, so I resort to the useful command find. So I type find ~ *.pdf or find ~ "*.pdf" and I get nothing. I do the same on my machine and I get nothing. I do a regular search from the menu on my machine and I find quite a few pdf files. Would somebody please tell me what am I doing wrong?
I'm in a ssh connection and I would like to play a sound after a command completes (not on the server where I connected).
Something:
ssh [email protected]
make && play-sound-local
I have built-in pc-speaker disabled so echo -e "\a" doesn't work.
Any suggestions?
Hi...i wanna list every file end at conf, and i wanna to copy to a file the results(with command find -exec)
I try this:
find -name *conf -exec /home/ubuntu/myfile
is this wrong?
Hi All,
I have a situation that I have to use raw ftp commands such as cwd, retr, size, stor, type, and rest. I found out that most of GUI based FTP clients do not support command line commands.
Is there a window ftp client that supports raw ftp commands?
I have a CSV file where data are in the following format
|001|,|abc,def|,123456,789,|aaa|,|bbb|,444,555,666
I want to replace only those "," that appears between numbers with some other character like say SOH or $ or *
other "," appearing in the line should not get replaced i.e. to say I wish to have following output
|001|,|abc,def|,123456*789,|aaa|,|bbb|,444*555*666
Can someone please help me with sed command pattern to get the above desired output