All Questions
13
questions with no upvoted or accepted answers
3
votes
0
answers
1k
views
Gnome 3 copy/paste with a Mac keyboard
I want to use a Mac keyboard in Linux with Gnome 3. What I essentially want is to have Cmd/Ctrl keys behave like in Mac: do all copy/cut/paste, window switch and etc. using Cmd key but in Terminal ...
2
votes
0
answers
118
views
How to source from stdout for both Linux and macOS?
On Linux I can do:
source <(cat .env | grep ANDROID_GRADLE_TASK)
But on macOS, this doesn't do anything (no error, and no source)
What can I use for macOS?
Is there a command that works both on ...
1
vote
1
answer
1k
views
Password Protect file or lock file from command line
I need to lock a file where if anyone tries to open it then it requires a password. I would like for even root to have to type in a password different from the root's password itself. I'm not sure ...
0
votes
0
answers
158
views
MacOs equivalent of adding a user to the linux dialout group on for permissions setup for UART communication
I'm working on a project where I'm interfacing with some hardware and want to monitor the data from some sensors using a specific tool. The tool doesn't have official support for MacOS but I've ...
0
votes
0
answers
28
views
switching window keyboard shortcut with screen window management on MacOS
all
I used to be a linux user, now I am accessing a server from MacOS, Ventura. I have remapped my Mac Keyboard by switching the ctrol and command keys. However, I came across some problems with the ...
0
votes
1
answer
712
views
"echo $VAR | base64 -di > file" fail to execute on MacOS
On Linux I can do:
echo ${ANDROID_KEYSTORE} | base64 -di > android/keystores/staging.keystore
But on MacOS, the same commands gives:
base64: option requires an argument -- i
Usage: base64 [-hvDd] ...
0
votes
0
answers
100
views
Unable to redirect `coproc` streams using FD 5 and 6, but not 3 and 4. Why?
On OSX, while attempting to expose a service implemented as a bash script, and started with coproc, to a client implemented as a bash script, by passing the IO streams of the service to the client, I ...
0
votes
1
answer
2k
views
What does this rm -r command do in following usecase on mac terminal?
First I'm directing to the destination folder by below command
cd /Users/myname/MyFolder/
Now I'm using below command here, what does this command will do?
rm -r ../build ../dist
rm command is for ...
0
votes
1
answer
176
views
Moving files to matching folders on linux command line
I would like to copy or move files in to matching folders.
these are my filenames:
1-filename-aa.txt
2-filename-aa.txt
3-filename-aa.txt
1-filename-bb.txt
2-filename-bb.txt
3-filename-bb.txt
these ...
0
votes
1
answer
1k
views
Alias command from terminal that opens a new terminal on a specific folder
I have this command already working in my .bash_profile:
alias mysite='cd /Applications/sites/mysite;pwd; php artisan serve --port=9000 | open http://localhost:9000 | open -a Finder ./'
So it:
CD's ...
0
votes
1
answer
428
views
Set ENV variable for all commands in current directory in mac os
Is there a way to run all commands in current directory with some ENV variables predefined?
Example of what I need:
I put some file, say .env in my directory, with:
export SECRET='abcd123'
Then I ...
0
votes
1
answer
38
views
Is there a way to determine the IP address from which a uri was served from a mac/linux box?
I have a few servers behind a load balancer and I want to know which one is servicing a particular request.
$ ping website.com only tells me the ip address of the load balancer. Is there a way I can ...
0
votes
0
answers
88
views
list all the information of a process under commandline in osx or linux
Is there any command to list all the information associated with a process, include all parameters in PS command, open files and ports and so on?
Thanks!