fs

command module
v0.0.0-...-763dd84 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

fs is a minimal static file server

It is designed to efficiently serve files from a specified directory and supports various file types.

Usage

fs <arguments>

Flags

-path string
    Path to serve files from
-port int
    Port number to listen on (default 1234)

Examples

fs -path /var/www -port 8080
    Custom directory and port.

fs
    Current directory, default port.

fs -path "/path/with spaces/"
    Directory with spaces.

fs -port 8000
    Change port, default path.

fs -path /var/static
    Default port, different directory.

fs -h
    Help message.

Install

To install using go:

go install -ldflags="-s -w" git.sr.ht/~nzv/fs@latest

Or, clone the repo, modify 'cfg.mk' if you want, and use 'make':

git clone https://git.sr.ht/~nzv/fs
cd fs
doas make install

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL