Created
April 5, 2026 12:55
-
-
Save 4skl/49f00767eafbfd29bab150155615ff17 to your computer and use it in GitHub Desktop.
Open nautilus (file browser) from the terminal using the "open" command on gnome
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # **Previous content** | |
| # To open nautilus (file browser) from the terminal using the "open" command | |
| open() { | |
| # If no argument is provided, default to "." (current directory) | |
| local path="${1:-.}" | |
| # Launch nautilus silently and detach it | |
| setsid nautilus "$path" > /dev/null 2>&1 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment