All Questions
90
questions
3
votes
1
answer
20k
views
How does "echo $0" work?
I found out on Ask Ubuntu I can use this command to figure out what shell I am in.
echo $0
I like this because it is simple as compared to more complex solutions like this one on the Unix and Linux ...
1
vote
1
answer
1k
views
Can you run a Python program using Nice in Mac Terminal?
I'm trying to assign a high priority level to a Python program as soon as it runs using Terminal. I'm thinking of syntax along the lines of:
sudo nice -n -20 pythonfile.py
This returns the error: ...
1
vote
0
answers
270
views
Problems installing RCPLEX
I get an error while I try to install RCPLEX on my Computer and I can't figure out what to do. There is no information what so ever on the internet regarding my problem.
R Marcel$ R CMD INSTALL --...
0
votes
1
answer
530
views
Added an external folder to a project in PHPStorm on MacOS Mojave
I'm working in PHP Storm, on a project that's using a package I'm developing in tandem. I've had a couple of workflows for this, but I'd really like to add an external directory (the package source) ...
2
votes
3
answers
3k
views
Possible solutions for "-bash: ./bolt: cannot execute binary file"?
users,
I hope some of you have an idea on how I can fix the following issue.
What I am trying to do:
I am trying to install/use a software called BOLT-LMM from a *.tar.gz file downloaded here as ...
1
vote
3
answers
15k
views
How to display colour text in terminal?
I want to display colour text in terminal(bash shell). Tried with this approach:
echo -e "\e[1;31m This is red text \e[0m"
But it doesn't change the text colour to red.
1
vote
1
answer
356
views
Bash Script; process macOS disk number based on drive size... GREP
I'm looking to script a few CoreStorage commands on drives automatically. The problem is one of the drives is external, which means it can appear mounted on the system as anything from disk2 to disk4 ...
1
vote
2
answers
88
views
OSX - Find if phone is connected to the WIFI Network
I'm trying to programmatically find whether my phone is connected to the current Network, given that I know my device's mac Address.
Something like this SOMETIMES works:
arp -a | grep "11:11:11:11:...
1
vote
1
answer
199
views
Why can't I create a symlink to a directory at the same level as that directory?
I have a directory called Foo. I want a symlink to it, on the same level as it, called foo.
ln -s Foo foo creates a symlink in Foo pointing back to itself.
$ mkdir lntmp && cd lntmp
$ mkdir ...
0
votes
2
answers
1k
views
bash broken osx "[Process completed]"
I had an error in a script, which ran 'brew unlink bash'. I then started getting: Warning: bash already installed, it's just not linked
I tried
brew update && brew install bash
sudo bash -c ...
17
votes
3
answers
22k
views
How to force ls terminal command to show results in Bytes while I have set the default to ls -h in bash profile?
I am following the snippet here to improve my terminal command in Mac OSX.
It sets the default value of ls results to human-readable by exporting alias ls='ls -GFh' to bash profile file. This is very ...
1
vote
1
answer
6k
views
unix/linux chmod to let everyone read every directory and file
I'm having file permission trouble backing up my MacbookPro through my LAN to my Windows computer.
I want to set permissions of all files and directories on MacbookPro to allow reading by all. On the ...
1
vote
1
answer
226
views
Fortran Compiler Installation Instructions for OS X
I try install fortran compiler for Mac OSX El captain.
Firstly;
I install install_f2c_osx.csh
Run installation script
$ chmod +x install_f2c_osx.csh
$ sudo ./install_f2c_osx.csh
It gives this ...
-1
votes
1
answer
371
views
high priority for I/O operations
I came across this:
http://linux.die.net/man/1/ionice
however, it seems that it is not working on os x, as i got message that command not found.
is there any alternative to it or way to install ...
2
votes
1
answer
249
views
Working with different implementations of cp across different environments
So I figured GNU's cp is different than OSX's (BSD).
While OSX copies the contents of a directory that ends with a slash, or the directory itself without the slash, GNU/Linux just treats somedir and ...