Documentation ¶
There is no documentation for this package.
Directories ¶
Path | Synopsis |
---|---|
cmds
|
|
boot/pxeboot
Command pxeboot implements PXE-based booting.
|
Command pxeboot implements PXE-based booting. |
core/basename
Basename return name with leading path information removed.
|
Basename return name with leading path information removed. |
core/cat
Cat concatenates files and prints to stdout.
|
Cat concatenates files and prints to stdout. |
core/chmod
Change modifier bits of a file.
|
Change modifier bits of a file. |
core/cmp
Cmp compares two files and prints a message if their contents differ.
|
Cmp compares two files and prints a message if their contents differ. |
core/comm
Perform a set comparisons over two files.
|
Perform a set comparisons over two files. |
core/cp
Copy files.
|
Copy files. |
core/cpio
cpio operates on cpio files using a cpio package It only implements basic cpio options.
|
cpio operates on cpio files using a cpio package It only implements basic cpio options. |
core/date
Print the date.
|
Print the date. |
core/dd
Convert and copy a file.
|
Convert and copy a file. |
core/df
df reports details of mounted filesystems
|
df reports details of mounted filesystems |
core/dhclient
dhclient sets up DHCP.
|
dhclient sets up DHCP. |
core/dirname
dirname prints out the directory name of one or more args.
|
dirname prints out the directory name of one or more args. |
core/dmesg
Read the system log.
|
Read the system log. |
core/echo
Echo writes its arguments separated by blanks and terminated by a newline on the standard output.
|
Echo writes its arguments separated by blanks and terminated by a newline on the standard output. |
core/elvish
Elvish is a cross-platform shell, supporting Linux, BSDs and Windows.
|
Elvish is a cross-platform shell, supporting Linux, BSDs and Windows. |
core/elvish/build
Package build contains build information.
|
Package build contains build information. |
core/elvish/edit
Package edit implements a command line editor.
|
Package edit implements a command line editor. |
core/elvish/edit/eddefs
Package eddefs contains types used in the Editor.
|
Package eddefs contains types used in the Editor. |
core/elvish/edit/highlight
Package highlight implements syntax highlighting for Elvish code.
|
Package highlight implements syntax highlighting for Elvish code. |
core/elvish/edit/location
Package location implements the location mode for the editor.
|
Package location implements the location mode for the editor. |
core/elvish/edit/prompt
Package prompt implements the prompt subsystem of the editor.
|
Package prompt implements the prompt subsystem of the editor. |
core/elvish/edit/tty
Package tty provides terminal functionality for the Elvish editor.
|
Package tty provides terminal functionality for the Elvish editor. |
core/elvish/edit/ui
Package ui contains types that may be used by different editor frontends.
|
Package ui contains types that may be used by different editor frontends. |
core/elvish/eval
Package eval handles evaluation of parsed Elvish code and provides runtime facilities.
|
Package eval handles evaluation of parsed Elvish code and provides runtime facilities. |
core/elvish/eval/bundled
Package bundled keeps bundled modules.
|
Package bundled keeps bundled modules. |
core/elvish/eval/vals
Package vals contains basic facilities for manipulating values used in the Elvish runtime.
|
Package vals contains basic facilities for manipulating values used in the Elvish runtime. |
core/elvish/eval/vars
Package vars contains basic types for manipulating Elvish variables.
|
Package vars contains basic types for manipulating Elvish variables. |
core/elvish/getopt
Package getopt implements a command-line argument parser.
|
Package getopt implements a command-line argument parser. |
core/elvish/glob
Package glob implements globbing for elvish.
|
Package glob implements globbing for elvish. |
core/elvish/parse
Package parse implements the elvish parser.
|
Package parse implements the elvish parser. |
core/elvish/parse/parseutil
Package parseutil contains utilities built on top of the parse package.
|
Package parseutil contains utilities built on top of the parse package. |
core/elvish/program
Package program provides the entry point to Elvish.
|
Package program provides the entry point to Elvish. |
core/elvish/program/shell
Package shell is the entry point for the terminal interface of Elvish.
|
Package shell is the entry point for the terminal interface of Elvish. |
core/elvish/runtime
Package runtime assembles the Elvish runtime.
|
Package runtime assembles the Elvish runtime. |
core/elvish/store/storedefs
Package storedefs contains definitions used by the store package.
|
Package storedefs contains definitions used by the store package. |
core/elvish/sys
Package sys provide convenient wrappers around syscalls.
|
Package sys provide convenient wrappers around syscalls. |
core/elvish/tt
Package tt supports table-driven tests with little boilerplate.
|
Package tt supports table-driven tests with little boilerplate. |
core/elvish/util
Package util contains utility functions.
|
Package util contains utility functions. |
core/false
Returns 1.
|
Returns 1. |
core/find
Find finds files.
|
Find finds files. |
core/free
free reports usage information for physical memory and swap space.
|
free reports usage information for physical memory and swap space. |
core/fusermount
fusermount is a very limited replacement for the C fusermount.
|
fusermount is a very limited replacement for the C fusermount. |
core/gpgv
gpgv validates a signature against a file.
|
gpgv validates a signature against a file. |
core/gpt
gpt reads and writes GPT headers.
|
gpt reads and writes GPT headers. |
core/grep
Concurrent, parallel grep.
|
Concurrent, parallel grep. |
core/hexdump
Prints files in hexadecimal.
|
Prints files in hexadecimal. |
core/hostname
Print the system's hostname.
|
Print the system's hostname. |
core/hwclock
Read or set the hardware clock (RTC) in UTC format.
|
Read or set the hardware clock (RTC) in UTC format. |
core/id
Synopsis:
|
Synopsis: |
core/init
Build commands in background processes.
|
Build commands in background processes. |
core/insmod
Insert a module into the Linux kernel
|
Insert a module into the Linux kernel |
core/io
io reads and writes to physical memory and ports.
|
io reads and writes to physical memory and ports. |
core/kexec
kexec executes a new kernel over the running kernel (u-root).
|
kexec executes a new kernel over the running kernel (u-root). |
core/kill
Kill kills processes.
|
Kill kills processes. |
core/lddfiles
lddfiles prints the arguments and all .so dependencies of those arguments
|
lddfiles prints the arguments and all .so dependencies of those arguments |
core/less
less pages through a file
|
less pages through a file |
core/ln
Ln makes links to files.
|
Ln makes links to files. |
core/losetup
Setup loop devices.
|
Setup loop devices. |
core/ls
Ls prints the contents of a directory.
|
Ls prints the contents of a directory. |
core/lsmod
List modules currently loaded in the Linux kernel
|
List modules currently loaded in the Linux kernel |
core/man
man - print manual entry for command.
|
man - print manual entry for command. |
core/man/data
Code generated by man/gen/gen.go.
|
Code generated by man/gen/gen.go. |
core/mkdir
Mkdir makes a new directory.
|
Mkdir makes a new directory. |
core/mkfifo
mkfifo creates a named pipe.
|
mkfifo creates a named pipe. |
core/mknod
Unmount a filesystem at the specified path.
|
Unmount a filesystem at the specified path. |
core/mktemp
Mktemp makes a temporary file (or directory)
|
Mktemp makes a temporary file (or directory) |
core/more
More pages through files without any terminal trickery.
|
More pages through files without any terminal trickery. |
core/mount
Mount a filesystem at the specified path.
|
Mount a filesystem at the specified path. |
core/msr
msr lets you read and write an msr for one or more cores.
|
msr lets you read and write an msr for one or more cores. |
core/mv
Mv renames files and directories.
|
Mv renames files and directories. |
core/netcat
Netcat pipes over the network.
|
Netcat pipes over the network. |
core/ntpdate
simple ntpd daemon in Go.
|
simple ntpd daemon in Go. |
core/pci
pci: show pci bus vendor ids and other info
|
pci: show pci bus vendor ids and other info |
core/ping
Send icmp packets to a server to test network connectivity.
|
Send icmp packets to a server to test network connectivity. |
core/printenv
Print environment variables.
|
Print environment variables. |
core/ps
Print process information.
|
Print process information. |
core/pwd
Print name of current directory.
|
Print name of current directory. |
core/readlink
readlink display value of symbolic link file.
|
readlink display value of symbolic link file. |
core/rm
Delete files.
|
Delete files. |
core/rmmod
Remove a module from the Linux kernel
|
Remove a module from the Linux kernel |
core/rsdp
rsdp allows to determine the ACPI RSDP structure address which could be passed to the boot command later on It must be executed at the system init as it relies on scanning the kernel messages which could be quickly filled up in some cases
|
rsdp allows to determine the ACPI RSDP structure address which could be passed to the boot command later on It must be executed at the system init as it relies on scanning the kernel messages which could be quickly filled up in some cases |
core/scp
Scp copies files between hosts on a network.
|
Scp copies files between hosts on a network. |
core/seq
Print a sequence of numbers.
|
Print a sequence of numbers. |
core/shutdown
shutdown halts, suspends, or reboots.
|
shutdown halts, suspends, or reboots. |
core/sleep
Delay for the specified amount of time.
|
Delay for the specified amount of time. |
core/sort
Sort lines.
|
Sort lines. |
core/strace
strace is a simple multi-process tracer.
|
strace is a simple multi-process tracer. |
core/strings
Strings finds printable strings.
|
Strings finds printable strings. |
core/stty
The command works like this: stty [verb] [options] Verbs are: dump -- dump the json of the struct to stdout load -- read a json file from stdin and use it to set raw -- convenience command to set raw cooked -- convenience command to set cooked In common stty usage, options may be specified without a verb.
|
The command works like this: stty [verb] [options] Verbs are: dump -- dump the json of the struct to stdout load -- read a json file from stdin and use it to set raw -- convenience command to set raw cooked -- convenience command to set cooked In common stty usage, options may be specified without a verb. |
core/sync
sync command in Go.
|
sync command in Go. |
core/tar
Create and extract tar archives.
|
Create and extract tar archives. |
core/tee
Tee transcribes the standard input to the standard output and makes copies in the files.
|
Tee transcribes the standard input to the standard output and makes copies in the files. |
core/true
Returns 0.
|
Returns 0. |
core/truncate
Truncate - shrink or extend the size of a file to the specified size
|
Truncate - shrink or extend the size of a file to the specified size |
core/umount
Unmount a filesystem at the specified path.
|
Unmount a filesystem at the specified path. |
core/uname
Print build information about the kernel and machine.
|
Print build information about the kernel and machine. |
core/uniq
Uniq removes repeated lines.
|
Uniq removes repeated lines. |
core/unshare
Disassociate parts of the process execution context.
|
Disassociate parts of the process execution context. |
core/uptime
Get the time the machine has been up Synopsis:
|
Get the time the machine has been up Synopsis: |
core/wc
Wc counts lines, words, runes, syntactically–invalid UTF codes.
|
Wc counts lines, words, runes, syntactically–invalid UTF codes. |
core/wget
Wget reads one file from a url and writes to stdout.
|
Wget reads one file from a url and writes to stdout. |
core/which
Which locates a command.
|
Which locates a command. |
exp/ansi
Print ansi escape sequences.
|
Print ansi escape sequences. |
exp/ash
our first builtin: cd
|
our first builtin: cd |
exp/bzimage
bzImage is used to modify bzImage files.
|
bzImage is used to modify bzImage files. |
exp/cbmem
cbmem prints out coreboot mem table information in JSON by default, and also implements the basic cbmem -list and -console commands.
|
cbmem prints out coreboot mem table information in JSON by default, and also implements the basic cbmem -list and -console commands. |
exp/console
console implements a basic console.
|
console implements a basic console. |
exp/cpu
cpu - connection to CPU server over SSH protocol
|
cpu - connection to CPU server over SSH protocol |
exp/crc
Prints crc checksum of a file.
|
Prints crc checksum of a file. |
exp/ectool
These should all implement io.ReadAt, with the address as the Offset; same for WriteAt.
|
These should all implement io.ReadAt, with the address as the Offset; same for WriteAt. |
exp/ed
Options:
|
Options: |
exp/fdtdump
fdtdump prints a readable version of Flattened Device Tree or dtb.
|
fdtdump prints a readable version of Flattened Device Tree or dtb. |
exp/field
The `field` command reads newline-separated lines of data from either the standard input or the specified files.
|
The `field` command reads newline-separated lines of data from either the standard input or the specified files. |
exp/fixrsdp
This command copies the existing RSDP into the EBDA.
|
This command copies the existing RSDP into the EBDA. |
exp/forth
Forth is a forth interpreter.
|
Forth is a forth interpreter. |
exp/freq
Freq reads the given files (default standard input) and prints histograms of the character frequencies.
|
Freq reads the given files (default standard input) and prints histograms of the character frequencies. |
exp/modprobe
modprobe - Add and remove modules from the Linux Kernel
|
modprobe - Add and remove modules from the Linux Kernel |
exp/pox
pox builds a portable executable as a squashfs image.
|
pox builds a portable executable as a squashfs image. |
exp/readpe
Dump the headers of a PE file.
|
Dump the headers of a PE file. |
exp/run
Run executes its arguments as a Go program.
|
Run executes its arguments as a Go program. |
exp/rush
our first builtin: cd
|
our first builtin: cd |
exp/srvfiles
Serve files on the network.
|
Serve files on the network. |
exp/tac
tac concatenates files and prints to stdout in reverse order, file by file
|
tac concatenates files and prints to stdout in reverse order, file by file |
exp/validate
This program validates a file by verifying a checksum and a signature file.
|
This program validates a file by verifying a checksum and a signature file. |
exp/zimage
zimage dumps the header of a zImage.
|
zimage dumps the header of a zImage. |
examples
|
|
uinit
This is a basic init script.
|
This is a basic init script. |
pkg
|
|
acpi
Package acpi began life as a relatively simple set of functions.
|
Package acpi began life as a relatively simple set of functions. |
bb
Package bb implements a Go source-to-source transformation on pure Go code.
|
Package bb implements a Go source-to-source transformation on pure Go code. |
bb/bbmain
Package bbmain is the package imported by all rewritten busybox command-packages to register themselves.
|
Package bbmain is the package imported by all rewritten busybox command-packages to register themselves. |
bb/bbmain/cmd
Package main is the busybox main.go template.
|
Package main is the busybox main.go template. |
boot
Package boot is the high-level interface for booting another operating system from Linux using kexec.
|
Package boot is the high-level interface for booting another operating system from Linux using kexec. |
bzimage
package bzImage implements encoding.UnmarshalBinary for bzImage files.
|
package bzImage implements encoding.UnmarshalBinary for bzImage files. |
cmdline
Package cmdline provides a parser and convenience functions for reading configuration data from /proc/cmdline it's conformant with https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html, though making 'var_name' and 'var-name' equivalent may need to be done separately.
|
Package cmdline provides a parser and convenience functions for reading configuration data from /proc/cmdline it's conformant with https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html, though making 'var_name' and 'var-name' equivalent may need to be done separately. |
complete
Package complete implements a simple completion package designed to be used in shells and other programs.
|
Package complete implements a simple completion package designed to be used in shells and other programs. |
cp
Package cp implements routines to copy files.
|
Package cp implements routines to copy files. |
cp/cmp
Package cmp compares trees of files.
|
Package cmp compares trees of files. |
cpio
Package cpio implements utilities for reading and writing cpio archives.
|
Package cpio implements utilities for reading and writing cpio archives. |
dhclient
Package dhclient provides a unified interface for interfacing with both DHCPv4 and DHCPv6 clients.
|
Package dhclient provides a unified interface for interfacing with both DHCPv4 and DHCPv6 clients. |
dt
Package dt contains utilities for device tree.
|
Package dt contains utilities for device tree. |
ebda
Package ebda looks for the Extended Bios Data Area (EBDA) pointer in /dev/mem, and provides access to the EBDA.
|
Package ebda looks for the Extended Bios Data Area (EBDA) pointer in /dev/mem, and provides access to the EBDA. |
esxi
Package esxi contains an ESXi boot config parser for disks and CDROMs.
|
Package esxi contains an ESXi boot config parser for disks and CDROMs. |
forth
Package forth implements Forth parsing, which allows programs to use forth-like syntax to manipulate a stack of Cells.
|
Package forth implements Forth parsing, which allows programs to use forth-like syntax to manipulate a stack of Cells. |
golang
Package golang is an API to the Go compiler.
|
Package golang is an API to the Go compiler. |
gpio
Package gpio provides functions for interacting with GPIO pins via the GPIO Sysfs Interface for Userspace.
|
Package gpio provides functions for interacting with GPIO pins via the GPIO Sysfs Interface for Userspace. |
gpt
gpt implements reading and writing of GUID Partition tables.
|
gpt implements reading and writing of GUID Partition tables. |
ibft
Package ibft defines the iSCSI Boot Firmware Table.
|
Package ibft defines the iSCSI Boot Firmware Table. |
ipxe
Package ipxe implements a trivial IPXE config file parser.
|
Package ipxe implements a trivial IPXE config file parser. |
kexecbin
Package kexecbin offers a kexec API via a callout to kexec-tools.
|
Package kexecbin offers a kexec API via a callout to kexec-tools. |
kmodule
Package kmodule interfaces with Linux kernel modules.
|
Package kmodule interfaces with Linux kernel modules. |
ldd
ldd returns all the library dependencies of a list of file names.
|
ldd returns all the library dependencies of a list of file names. |
lockfile
Package lockfile coordinates process-based file locking.
|
Package lockfile coordinates process-based file locking. |
loop
Package loop provides an interface to interacting with Linux loop devices.
|
Package loop provides an interface to interacting with Linux loop devices. |
ls
Package ls implements formatting tools to list files like the Linux ls tool.
|
Package ls implements formatting tools to list files like the Linux ls tool. |
mount
Package mount implements mounting, moving, and unmounting file systems.
|
Package mount implements mounting, moving, and unmounting file systems. |
multiboot
Multiboot header as defined in https://www.gnu.org/software/grub/manual/multiboot/multiboot.html#Header-layout
|
Multiboot header as defined in https://www.gnu.org/software/grub/manual/multiboot/multiboot.html#Header-layout |
multiboot/internal/trampoline
Trampoline sets machine to a specific state defined by multiboot v1 spec and boots the final kernel.
|
Trampoline sets machine to a specific state defined by multiboot v1 spec and boots the final kernel. |
pty
Package pty provides basic pty support.
|
Package pty provides basic pty support. |
pxe
Package pxe implements the PXE config file parsing.
|
Package pxe implements the PXE config file parsing. |
qemu
Package qemu provides a Go API for starting QEMU VMs.
|
Package qemu provides a Go API for starting QEMU VMs. |
rand
Package rand implements cancelable reads from a cryptographically safe random number source.
|
Package rand implements cancelable reads from a cryptographically safe random number source. |
strace
Package strace implements the logic to print out the input and the return value of each traced syscall.
|
Package strace implements the logic to print out the input and the return value of each traced syscall. |
strace/internal/abi
Package abi describes the interface between a kernel and userspace.
|
Package abi describes the interface between a kernel and userspace. |
strace/internal/binary
Package binary translates between select fixed-sized types and a binary representation.
|
Package binary translates between select fixed-sized types and a binary representation. |
syslinux
Package syslinux implements a syslinux config file parser.
|
Package syslinux implements a syslinux config file parser. |
termios
Package termios implements basic termios operations including getting a tty struct, termio struct, a winsize struct, and setting raw mode.
|
Package termios implements basic termios operations including getting a tty struct, termio struct, a winsize struct, and setting raw mode. |
uio
Package uio unifies commonly used io utilities for u-root.
|
Package uio unifies commonly used io utilities for u-root. |
urlfetch
Package urlfetch implements routines to fetch files given a URL.
|
Package urlfetch implements routines to fetch files given a URL. |
uroot/util
Package util contains various u-root utility functions.
|
Package util contains various u-root utility functions. |
zimage
Package zimage contains a Parser for the arm zImage Linux format.
|
Package zimage contains a Parser for the arm zImage Linux format. |
tools
|
|
build_perf
Measure the performance of building all the Go commands under various GOGC values.
|
Measure the performance of building all the Go commands under various GOGC values. |
checklicenses
Run with `go run checklicenses.go`.
|
Run with `go run checklicenses.go`. |
makebb
makebb compiles many Go commands into one bb-style binary.
|
makebb compiles many Go commands into one bb-style binary. |
makebbmain
makebbmain creates a bb main.go source file.
|
makebbmain creates a bb main.go source file. |
mkinitramfs
mkinitramfs creates a u-root initramfs given the list of files on the command line.
|
mkinitramfs creates a u-root initramfs given the list of files on the command line. |
testramfs
testramfs tests things, badly
|
testramfs tests things, badly |
Click to show internal directories.
Click to hide internal directories.