Skip to content

Commit 8cfae52

Browse files
authored
Merge pull request #552 from dspinellis/macOS
Rename OS X into the current macOS name
2 parents 5347322 + 4523278 commit 8cfae52

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

100644100755
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- [System debugging](#system-debugging)
1717
- [One-liners](#one-liners)
1818
- [Obscure but useful](#obscure-but-useful)
19-
- [OS X only](#os-x-only)
19+
- [macOS only](#macos-only)
2020
- [Windows only](#windows-only)
2121
- [More resources](#more-resources)
2222
- [Disclaimer](#disclaimer)
@@ -39,7 +39,7 @@ but it has since moved to GitHub, where people more talented than the original a
3939
Scope:
4040

4141
- This guide is both for beginners and the experienced. The goals are *breadth* (everything important), *specificity* (give concrete examples of the most common case), and *brevity* (avoid things that aren't essential or digressions you can easily look up elsewhere). Every tip is essential in some situation or significantly saves time over alternatives.
42-
- This is written for Linux, with the exception of the "[OS X only](#os-x-only)" and "[Windows only](#windows-only)" sections. Many of the other items apply or can be installed on other Unices or OS X (or even Cygwin).
42+
- This is written for Linux, with the exception of the "[macOS only](#macos-only)" and "[Windows only](#windows-only)" sections. Many of the other items apply or can be installed on other Unices or macOS (or even Cygwin).
4343
- The focus is on interactive Bash, though many tips apply to other shells and to general Bash scripting.
4444
- It includes both "standard" Unix commands as well as ones that require special package installs -- so long as they are important enough to merit inclusion.
4545

@@ -109,7 +109,7 @@ Notes:
109109

110110
- Use `nohup` or `disown` if you want a background process to keep running forever.
111111

112-
- Check what processes are listening via `netstat -lntp` or `ss -plat` (for TCP; add `-u` for UDP) or `lsof -iTCP -sTCP:LISTEN -P -n` (which also works on OS X).
112+
- Check what processes are listening via `netstat -lntp` or `ss -plat` (for TCP; add `-u` for UDP) or `lsof -iTCP -sTCP:LISTEN -P -n` (which also works on macOS).
113113

114114
- See also `lsof` and `fuser` for open sockets and files.
115115

@@ -538,23 +538,23 @@ A few examples of piecing together commands:
538538
- `fortune`, `ddate`, and `sl`: um, well, it depends on whether you consider steam locomotives and Zippy quotations "useful"
539539

540540

541-
## OS X only
541+
## macOS only
542542

543-
These are items relevant *only* on OS X.
543+
These are items relevant *only* on macOS.
544544

545-
- Package management with `brew` (Homebrew) and/or `port` (MacPorts). These can be used to install on OS X many of the above commands.
545+
- Package management with `brew` (Homebrew) and/or `port` (MacPorts). These can be used to install on macOS many of the above commands.
546546

547547
- Copy output of any command to a desktop app with `pbcopy` and paste input from one with `pbpaste`.
548548

549-
- To enable the Option key in OS X Terminal as an alt key (such as used in the commands above like **alt-b**, **alt-f**, etc.), open Preferences -> Profiles -> Keyboard and select "Use Option as Meta key".
549+
- To enable the Option key in macOS Terminal as an alt key (such as used in the commands above like **alt-b**, **alt-f**, etc.), open Preferences -> Profiles -> Keyboard and select "Use Option as Meta key".
550550

551551
- To open a file with a desktop app, use `open` or `open -a /Applications/Whatever.app`.
552552

553553
- Spotlight: Search files with `mdfind` and list metadata (such as photo EXIF info) with `mdls`.
554554

555-
- Be aware OS X is based on BSD Unix, and many commands (for example `ps`, `ls`, `tail`, `awk`, `sed`) have many subtle variations from Linux, which is largely influenced by System V-style Unix and GNU tools. You can often tell the difference by noting a man page has the heading "BSD General Commands Manual." In some cases GNU versions can be installed, too (such as `gawk` and `gsed` for GNU awk and sed). If writing cross-platform Bash scripts, avoid such commands (for example, consider Python or `perl`) or test carefully.
555+
- Be aware macOS is based on BSD Unix, and many commands (for example `ps`, `ls`, `tail`, `awk`, `sed`) have many subtle variations from Linux, which is largely influenced by System V-style Unix and GNU tools. You can often tell the difference by noting a man page has the heading "BSD General Commands Manual." In some cases GNU versions can be installed, too (such as `gawk` and `gsed` for GNU awk and sed). If writing cross-platform Bash scripts, avoid such commands (for example, consider Python or `perl`) or test carefully.
556556

557-
- To get OS X release information, use `sw_vers`.
557+
- To get macOS release information, use `sw_vers`.
558558

559559
## Windows only
560560

@@ -595,7 +595,7 @@ These items are relevant *only* on Windows.
595595
## More resources
596596

597597
- [awesome-shell](https://github.com/alebcay/awesome-shell): A curated list of shell tools and resources.
598-
- [awesome-osx-command-line](https://github.com/herrbischoff/awesome-osx-command-line): A more in-depth guide for the OS X command line.
598+
- [awesome-osx-command-line](https://github.com/herrbischoff/awesome-osx-command-line): A more in-depth guide for the macOS command line.
599599
- [Strict mode](http://redsymbol.net/articles/unofficial-bash-strict-mode/) for writing better shell scripts.
600600
- [shellcheck](https://github.com/koalaman/shellcheck): A shell script static analysis tool. Essentially, lint for bash/sh/zsh.
601601
- [Filenames and Pathnames in Shell](http://www.dwheeler.com/essays/filenames-in-shell.html): The sadly complex minutiae on how to handle filenames correctly in shell scripts.

0 commit comments

Comments
 (0)