/bin/

From GhostBSD Wiki
Revision as of 12:32, 8 June 2020 by Slughorn (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Welcome to Icon Disti GhostBSD.png /bin/.
System Administration Utilities
/bin/ Tools and applications /sbin/ System Administration Utilities
/usr/bin/ Tools and applications /usr/sbin/ System tools
/usr/local/bin/ Tools and applications /usr/local/sbin/ System tools
Back to the Icon Disti GhostBSD.pngSystem
Utility Description
[ The test utility evaluates the expression and, if it evaluates to true, returns a zero (true) exit status; otherwise it returns 1 (false). If there is no expression, test also returns 1 (false).
cat The cat utility reads files sequentially, writing them to the standard output. The file operands are processed in command-line order. If file is a single dash (`-') or absent, cat reads from the standard input. If file is a UNIX domain socket, cat connects to it and then reads it until EOF. This complements the UNIX domain binding capability available in inetd(8).
chflags The chflags utility modifies the file flags of the listed files as specified by the flags operand.
chio The chio utility is used to control the operation of medium changers, such as those found in tape and optical disk jukeboxes.
chmod The chmod utility modifies the file mode bits of the listed files as specified by the mode operand.
cp In the first synopsis form, the cp utility copies the contents of the source_file to the target_file. In the second synopsis form, the contents of each named source_file is copied to the destination target_directory. The names of the files themselves are not changed. If cp detects an attempt to copy a file to itself, the copy will fail.
csh C shell
date display or set date and time
dd The dd utility copies the standard input to the standard output. Input data is read and written in 512-byte blocks. If input reads are short, input from multiple reads are aggregated to form the output block. When finished, dd displays the number of complete and partial input and output blocks and truncated input records to the standard error output.
df The df utility displays statistics about the amount of free disk space on the specified file system or on the file system of which file is a part. Values are displayed in 512-byte per block counts.
domainname The domainname utility prints the name of the current YP/NIS domain. The super-user can set the domain name by supplying an argument; this is usually done in the network initialization script /etc/rc.network, normally run at boot time.
echo The echo utility writes any specified operands, separated by single blank (` ') characters and followed by a newline (`\n') character, to the standard output.
ed The ed utility is a line-oriented text editor.
expr The expr utility evaluates expression and writes the result on standard output
freebsd-version The freebsd-version command shows you the version of FreeBSD you are running.
getfacl The getfacl utility writes discretionary access control information associated with the specified file(s) to standard output.
hostname The hostname utility prints the name of the current host. The super-user can set the hostname by supplying an argument; this is usually done in the initialization script /etc/rc.d/hostname, normally run at boot time. This script uses the hostname variable in /etc/rc.conf.
kenv The kenv utility will dump the kernel environment if invoked without arguments. If the -h option is specified, it will limit the report to kernel probe hints. If an optional variable name is specified, kenv will only report that value. If the -N option is specified, kenv will only display variable names and not their values. If the -u option is specified, kenv will delete the given environment variable. If the environment variable is followed by an optional value, kenv will set the environment variable to this value.
kill The kill utility sends a signal to the processes specified by the pid operands. Only the super-user may send signals to other users' processes.
link link, linkat make a hard file link
ln ln, link -- link files
ls ls list directory contents. For each operand that names a file of a type other than directory, ls displays its name as well as any requested, associated information. For each operand that names a file of type directory, ls displays the names

of files contained within that directory, as well as any requested, associated information.

mkdir mkdir: make directories; The mkdir utility creates the directories named as operands, in the order specified, using mode "rwxrwxrwx" (0777) as modified by the current umask(2).
mv In its first form, the mv utility renames the file named by the source operand to the destination path named by the target operand. This form

is assumed when the last operand does not name an already existing directory.

pax The pax utility will read, write, and list the members of an archive file, and will copy directory hierarchies. These operations are independent of the specific archive format, and support a wide variety of different archive formats. A list of supported archive formats can be found under the description of the -x option.
pgrep The pgrep command searches the process table on the running system and prints the process IDs of all processes that match the criteria given on the command line.
pkill The pkill command searches the process table on the running system and signals all processes that match the criteria given on the command line.
ps process status; The [ttps://www.freebsd.org/cgi/man.cgi?query=ps&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html ps] utility displays a header line, followed by lines containing in formation about all of your processes that have controlling terminals. If the -x options is specified, ps will also display processes that do

not have controlling terminals.

pwait The pwait utility will wait until each of the given processes has terminated.
pwd The pwd utility writes the absolute pathname of the current working directory to the standard output.
rc-status TrueOS has been using OpenRC successfully for many years in base and ports.

The goal is to integrate OpenRC into the FreeBSD RC system, allowing either RC system or OpenRC to be chosen at boot, and OpenRC ports RC scripts for the entire ports tree. As for now the plan is to get this into the base, and bring these to ports in the second step. see: Revision Contents OpenRC initskripts uses rc-update, rc-status and rc-service to manage services. Required binaries: /bin/rc-status, /sbin/rc-update, /sbin/rc-service.

realpath The realpath utility uses the realpath(3) function to resolve all symbolic links, extra `/' characters and references to /./ and /../ in path. If path is absent, the current working directory (`.') is assumed.
red The ed utility is a line-oriented text editor. It is used to create, display, modify and otherwise manipulate text files. When invoked as red, the editor runs in "restricted" mode, in which the only difference is that the editor restricts the use of filenames which start with `!' (interpreted as shell commands by ed) or contain a `/'.
rm The rm utility attempts to remove the non-directory type files specified on the command line. If the permissions of the file do not permit writing, and the standard input device is a terminal, the user is prompted (on the standard error output) for confirmation.
rmail Postfix to Sendmail compatibility interface
rmdir remove directories
setfacl The setfacl utility sets discretionary access control information on the specified file(s). If no files are specified, or the list consists of the only `-', the file names are taken from the standard input.
sh command interpreter (shell)
sleep suspend execution for an interval of time
stty set the options for a terminal device interface
sync The sync utility can be called to ensure that all disk writes have been completed before the processor is halted in a way not suitably done by reboot(8) or halt(8). Generally, it is preferable to use reboot(8) or halt(8) to shut down the system, as they may perform additional actions such as resynchronizing the hardware clock and flushing internal caches before performing a final sync.
tcsh C shell with file name completion and command line editing
test The test utility evaluates the expression and, if it evaluates to true, returns a zero (true) exit status; otherwise it returns 1 (false). If there is no expression, test also returns 1 (false). See also /bin/[ above.
unlink unlink: remove directory entries
uuidgen The uuidgen utility by default generates a single DCE version 1 universally unique identifier (UUID), also known as a globally unique identi fier (GUID). The UUID is written to stdout by default.
Back to Icon Disti GhostBSD.pngDirectory Structure