Skip to main content

All Questions

0 votes
0 answers
40 views

PageUp/PageDown -- how to catch properly?

I am here on a tutorial to build a text editor. I'm finding that on my macOS (it works on a Linux VM), even with raw mode enabled, I'm unable to intercept Page Up and Page Down, which are sent via fn-&...
user129393192's user avatar
0 votes
1 answer
184 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) I have tried to replace -di with --decode --input, it didn't help. ...
Dimitri Kopriwa's user avatar
0 votes
1 answer
537 views

Warp terminal launch through skhd

Did anyone get [Warp Terminal][1] to work with [skhd][2]? I use to use Kitty with cmd - return : /Applications/kitty.app/Contents/MacOS/kitty --single-instance -d ~ I'm trying to get launch it with: ...
Anders Aaen Springborg's user avatar
0 votes
1 answer
166 views

Installing Snaphu on Mac OSX Big Sur ZSH

Snaphu is a script that unwraps complex Radar images. The compressed zip setup file can be downloaded from standford website. It should be installed using the zsh terminal and must be copied to system ...
Muddasir Shah's user avatar
6 votes
2 answers
6k views

How do I verify the checksum or hash of a downloaded file on the command line?

If I have downloaded a file from the internet, and the source website has provided a checksum or hash (eg. SHA-256), how do I verify that the hash of the downloaded file matches the hash reported on ...
TransferOrbit's user avatar
1 vote
2 answers
3k views

On macOS, how do we remove the past commands history from Terminal > Shell > New Command?

We want to remove the list of commands that were run in the past in the New Command window. It is the AutoFill or AutoComplete history of commands. To see them, follow these steps: Launch Terminal ...
Muhammad Asif Mohtesham's user avatar
2 votes
1 answer
2k views

What does 'mustard color' highlighted directories mean?

When I run 'ls -laGp' command in macOS some of the folders are highlighted with this color. What does that mean? I researched but couldn't find any documentation or anything. If you let me know ...
Erdal Dogan's user avatar
2 votes
3 answers
1k views

On a Mac, how can I list contents of a non-current directory without showing backup files (ending with ~), preferably with BSD command ls?

My system: OS: MacOS / Mac OS X (Mojave 10.14.5) OS core: Darwin (18.6.0) Kernel: Darwin Kernel / XNU (18.6.0 / xnu-4903.261.4~2/RELEASE_X86_64) ls: version unknown, but man ls gives a page from the ...
zeroparallax's user avatar
0 votes
2 answers
5k views

Different ways to execute a binary? [closed]

Are there more ways of executing Unix binaries using a terminal (command line)? Using echo as an example: $ /bin/echo "test" test $ cd /bin/ $ ./echo "test" test $ eval echo "test" test
user321532's user avatar
1 vote
1 answer
4k views

Outputting the binary of a file to a text editor

I have read that you can use the terminal command xxd -b to see the binary of a file. I used this command and it does show the binary but has non-binary listed to the left as line numbers and non-...
Sand's user avatar
  • 11
0 votes
1 answer
117 views

macos - terminal deleting parts of filepath beginning with "$" [duplicate]

I'm trying to manipulate files in a directory whose filepath includes a directory that starts with "$", for instance: git rm path/to/file/$dollarsigndirectory/anotherdirectory/file.format I'm ...
Dollarsignpredicament's user avatar
2 votes
2 answers
663 views

Make reset on Mac like reset on Linux

On Mac, the reset command in terminal almost does the same thing as clear. On Ubuntu Linux, and maybe other flavors of Linux, the reset command actually "resets" the terminal so that you can't scroll ...
Hunter T.'s user avatar
  • 603
1 vote
2 answers
985 views

Grep versus spotlight on mac

I'm a newly minted CS major and I have been wondering what the benefits of using grep versus spotlight on mac. I ran a command to search for a specific file because I lost track of which directory it ...
Bones223's user avatar
3 votes
2 answers
6k views

How can I access a Vim process after closing its terminal on macOS?

This what I get when I run the ps command: $ ps PID TTY TIME CMD 14777 ttys000 0:00.25 -bash 19716 ttys000 0:00.15 vi templates/base.html 8240 ttys001 0:00.11 -bash 8284 ...
UtkarshPramodGupta's user avatar
1 vote
1 answer
2k views

"ip" command of iproute2 package

In Linux I can do: ip -4 address show or (more verbosely): ip -family inet address show to retrieve information on IP addressing. This command returns: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 ...
marshki's user avatar
  • 617

15 30 50 per page