---
name: "opnk"
section: "1"
platform: "linux"
package: "offpunk"
version: "2.7.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/opnk"
---

# opnk(1)

universal open (like a punk) for offpunk

## NAME

**opnk** – universal open (like a punk) for offpunk

## SYNOPSIS

**opnk** \[-mode *MODE*\] \[-cache-validity *CACHE\_VALIDITY*\] \[*INPUT* *...*\]

**opnk** **-h** \| **--help**

## DESCRIPTION

opnk is an universal open command tool that will try to display any file in the pager [less(1)](/less/1.md) after rendering its content with [ansicat(1)](/ansicat/1.md). If that fails, opnk will fallback to opening the file with [xdg-open(1)](/xdg-open/1.md). If given an URL as input instead of a path, opnk will rely on [netcache(1)](/netcache/1.md) to get the networked content.

### Positional arguments

- *INPUT*

  path to the file or URL to open.

### Keyword arguments

- **-h**, **--help**

  Show a help message and exit

- **--mode** *MODE*

  MODE to use to render to choose between normal (default), full or source

- **--cache-validity** **-CACHE\_VALIDITY**

  Maximum age (in second) of the cached version before redownloading a new version.

## EXIT STATUS

The **opnk** utility exits 0 on success, and \>0 if an error occurs.

## SEE ALSO

[ansicat(1)](/ansicat/1.md), migrate-offpunk-cache(1), [netcache(1)](/netcache/1.md), [offpunk(1)](/offpunk/1.md), **https://offpunk.net/**

## AUTHORS

Lionel Dricot (Ploum) ⟨*offpunk2* *at* *ploum.eu*⟩
