All Questions
21
questions with no upvoted or accepted answers
4
votes
0
answers
305
views
Matching bracket selection on gnome-terminal, like Mac OSX terminal
I have recently fallen for a (non obvious) feature of the Mac OSX terminal:
Given a display of some kind of deeply nested text with lots of matching brackets, parenthesis, or quotes (ie. JSON), the ...
3
votes
1
answer
2k
views
How do I keep mac terminal keybindings when connected via ssh to a linux server?
My Setup
computer: Macbook pro
OS: OS X Snow Leopard
Software: Terminal.app, GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
The Server's Setup
Hardware: Not sure
OS: ...
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
0
answers
169
views
is there any way to install libgranite-dev on mac os?
I'm trying to get the elementary OS terminal working on mac. The installation process of this terminal is described here.
after downloading the folder with the code files and typing:
meson build --...
1
vote
0
answers
356
views
How can I correct two-finger scrolling on a Linux VM under OSX?
An earlier poster posted some of my concern at https://apple.stackexchange.com/questions/235029/in-terminal-how-to-exit-the-two-fingers-history-scrolling-mode, and I am grateful; I now know how to get ...
1
vote
1
answer
232
views
Why does CTL-3/CTL-# equal CTL-[? (and others) in the case of ASCII control characters
I've been rediscovering ASCII control characters as I fiddled with some terminal emulation code, and wrote a small program that outputs the hex value of each key I press (tcsetattr() with ~ICANON).
...
1
vote
0
answers
564
views
How come I have to `source ~/.profile` every time I launch a new terminal?
When I launch my terminal and I do
node --version
I get 2. w/e
Then I try to do nvm use 5.3.0 and it says nvm: command not found
So then I have to
source ~/.profile
Then I can use the nvm ...
1
vote
2
answers
4k
views
Script to auto execute creation of ssh tunnel
I'm a CS student, and still learning a lot of these things, and so please bear with me if I don't have a full grasp on what I'm trying here.
I'm on a Mac, connecting to a linux machine. I can set up ...
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
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
313
views
Terminal opens with a command not found error
I checked the .bash_profile and .zprofile, but it is empty.
Also .bashrc or .zshrc do not exist in my home directory.
Terminal window
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
217
views
How do I open a document in split screen-full screen from the terminal?
I use a Mac and have been getting into navigating through the terminal as I prepare to switch to linux for good in the future. One annoyance I have come across, which I can't seem to figure out is how ...
0
votes
2
answers
1k
views
Can't access Linux server via SSH
I have a MacBook Air, version 10.12.1 (Sierra).
I have been thus far with Windows for the better part of the last 20 years and few days ago I switched to Mac for the first time.
I have a shared ...