All Questions
9
questions
1
vote
1
answer
964
views
Terminal new window always shows -bash: Searching: command not found
When open terminal, it always shows -bash: Searching: command not found. It does not affect other functions, just each time, even though open a new terminal window, it still pops up at the top of the ...
46
votes
1
answer
13k
views
What's an elegant way to copy the creation and modification dates of a file to another file?
How can I set the time information of a file to be the same as of another file on OSX / Linux?
3
votes
1
answer
3k
views
Is it dangerous to have /usr/local/bin ahead of /usr/bin in one's PATH?
I was reading a Stack Exchange answer here about a connected topic, and part of the accepted answer said this:
never place user-writeable PATH elements ahead of those that can only be modified by ...
2
votes
2
answers
6k
views
OSX bash command line countdown timer
I found here on superuser the following nice countdown script that I could include in my .bash_profile:
function countdown(){
date1=$((`date +%s` + $1));
while [ "$date1" -ne `date +%s` ];...
0
votes
2
answers
2k
views
Is it possible to open a second shell session that will remember the user, machine, and directory I am in?
I'm ssh'ed into a machine and logged in as a different user. Is it possible to open a few new windows that will still be ssh'ed into that same machine, still logged in as that user?
0
votes
2
answers
394
views
Why does sudo -n on Mac OS X always return 0?
It looks like sudo -n on Mac OS X (10.10.3) always returns 0 as a return code.
So something like this will always show 0, regardless of whether the user has authenticated with his password first:
...
0
votes
1
answer
1k
views
Needing to open OS X bash script as via launchd IN a terminal window
I've got a lengthy and complex bash script which works OK, but I'm trying to automate my deployment process and I'm flummoxed at this point.
I can get the script to run as a LaunchAgent no problem, ...
0
votes
4
answers
2k
views
bash - directories ending in . and whitespace cannot be removed
On my external hard drive are two directories, Fun. and Complex_, where that _ is a whitespace. I cannot empty from my trash or remove them with rm -rf and I want to.
Neither show up in Finder on OSX,...
0
votes
3
answers
771
views
Problems with Bash 4.2.45 on Ubuntu
I am using a remot server running Ubuntu 13.10 with Bash 4.2.45 installed. My home system is OS X Mavericks with Bash 3.2.51 (Darwin build) installed. I haven't used bash much in the past but I've ...