go-mtree

(★ 101)

File systems verification utility and library, in likeness of mtree(8)

File Explorer

  • .drone.yml
  • .gitignore
  • check.go
  • check_test.go
  • cksum.go
  • cksum_test.go
  • compare.go
  • compare_test.go
  • creator.go
  • doc.go
  • entry.go
  • fseval.go
  • fseval_test.go
  • go.mod
  • go.sum
  • hierarchy.go
  • hierarchy_test.go
  • keywordfunc.go
  • keywordfuncs_bsd.go
  • keywordfuncs_linux.go
  • keywordfuncs_unsupported.go
  • keywords.go
  • keywords_linux_test.go
  • keywords_test.go
  • lchtimes_unix.go
  • lchtimes_unsupported.go
  • LICENSE
  • lookup.go
  • Makefile
  • mtree_test.go
  • parse.go
  • README.md
  • releases.md
  • stat_unix.go
  • stat_windows.go
  • tar.go
  • tar_test.go
  • update.go
  • update_linux_test.go
  • update_test.go
  • updatefuncs.go
  • updatefuncs_linux.go
  • updatefuncs_unsupported.go
  • walk.go
  • walk_test.go
  • xdev_unix.go
  • xdev_windows.go

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

cksum

View Details ▼

Calculate CRC checksums and byte counts of a file.
Note: On old UNIX systems the CRC implementation may differ.

cksum {{path/to/file}}

Display a 32-bit checksum, size in bytes and filename:

🔍

git clone

View Details ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

go build

View Details ▼

Compile Go sources.

go build {{path/to/main.go}}

Compile a 'package main' file (output will be the filename without extension):

go build -o {{path/to/binary}} {{path/to/source.go}}

Compile, specifying the output filename:

go build -o {{path/to/binary}} {{path/to/package}}

Compile a package:

🔍

go install

View Details ▼

Compile and install packages named by the import paths.

go install

Compile and install the current package:

go install {{path/to/package}}

Compile and install a specific local package:

go install {{golang.org/x/tools/gopls}}@{{latest}}

Install the latest version of a program, ignoring `go.mod` in the current directory:

🔍

time

View Details ▼

Measure how long a command took to run.
Note: `time` can either exist as a shell builtin, a standalone program, or both.
See also: `times`.

time {{command}}

Run the `command` and print the time measurements to `stdout`:

time

Display the current system time and prompt to enter a new time (leave empty to keep unchanged):

time read

Create a very simple stopwatch (only works in Bash):

🔍

gmake

View Details ▼

This command is an alias of GNU `make`.

tldr make

View documentation for the original command:

🔍

md5

View Details ▼

Calculate MD5 cryptographic checksums.

md5 {{path/to/file}}

Calculate the MD5 checksum for a file:

md5 {{path/to/file1 path/to/file2 ...}}

Calculate MD5 checksums for multiple files:

md5 -q {{path/to/file}}

Output only the MD5 checksum (no filename):

🔍

xattr

View Details ▼

Utility to work with extended filesystem attributes.

xattr -l {{file}}

List key:value extended attributes for a given file:

xattr -w {{attribute_key}} {{attribute_value}} {{file}}

Write an attribute for a given file:

xattr -d {{com.apple.quarantine}} {{file}}

Delete an attribute from a given file:

# Project Badges

// repository documentation