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?
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!
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
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?
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'm facing a problem which to ftp files using ftp client (Filezilla), since it always prompt me Error: Disconnected from server: ECONNABORTED - Connection aborted
Error: Failed to retrieve directory listing, but when I tried ftp using command line, it works fine form me.... does anyone have idea ?
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 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?
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 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
Hi
I run as admin on my machine and want to run an executable as non admin user from the command prompt (without logging off).
I'm running on windows 7 64 bit OS.
Is possible?
Thanks.
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?
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.
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?
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?
i have to open command prompt, but my laptop is not starting, when i on it, it show a error.. BOOTMGR is compressed restart press ctrl+alt+dlt. i have to open dos and launch ie and then delete some file from c drive
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?
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?
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
I'm running the following grep command
var=`grep -n "keyword" /var/www/test/testfile.txt`
This work just as expected but I need to insert the file name dynamically from a loop like so:
var=`grep -n "keyword" /var/www/test/`basename ${hd[$i]}`.txt`
But obviously the use of ` brakes this with a unexpected EOF while looking for matching ``' and unexpected end of file
Any ideas of away around 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?
I am running the top command to see details about specific processes. The output is piped to grep like so:
top -n 1 | grep jre
The output is usually around 4 lines, and I would like to prefix the current time to each line so it would be something like:
Before:
2772 deleteme 20 0 2832 1156 872 R 2.0 0.1 0:00.01 top
After:
13:46 25-08-2012 2772 deleteme 20 0 2832 1156 872 R 2.0 0.1 0:00.01 top
I have a problem with drive cloning.
Im using dd on damaged disk with bad sectors trying to make an image from it. Im booting computer with Live Linux CD .
Damaged disk: sda 146GB (NTFS)
External drive: sdb 300GB (NTFS)
After running the command below im running out of space on disk sdb.
dd if=/dev/sda of=/dev/sdb/hdd.img bs=4096 conv=noerror,sync
The question is why im running out of space on disk sdb ?
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?