Welcome Guest, you are in: Login

Nutbox.org

RSS RSS

Navigation



Search Nutbox.org
»

PoweredBy

Commands

RSS
Modified on 2011/11/07 20:28 by Administrator Categorized as Uncategorized
At the time of this writing, Nutbox contains these commands:

.
Name Description
ask Interactively asks the user a question and returns an exit code indicating the answer.
basename Prints the base name (file name) part of the specified path.
cat Prints the contents of one or more files.
clear Clears the console screen.
datecopy Copies a time stamp from one file or directory to another file or directory.
dircmp Compares two directories and optionally synchronizes them.
dirname Prints the directory part of the specified path.
dirsize Displays the sizes of a set of directories specified with wildcards.
diskfill Fills a disk so that it is (nearly) full.  Useful for testing and for wiping data.
diskfind Finds the disk that matches a particular volume label.
diskfree Displays the amount of free space on a given disk.
echo Echoes (prints) the specified string while optionally parsing escape characters.
exectime Displays the time it takes to execute a given command.
ext Displays the extensions present in one or more directories.
fileedit Searches and replaces strings in text files.
filefind Finds regular expressions or exact matches in text files.
filename Manipulates file and directory names using nine built-in commands.
filenameedit Edits file names according to one or more substitution patterns (fileedit on file names).
filesplit Splits a file into multiple parts that can later be merged using the copy command.
head Displays the first N lines of standard input or a file.
htm2html Converts an MS Office Word .HTM file into something that resembles HTML 4.01.
kill Kills (terminates) the specified process.
message Displays a message and waits for the user to hit ENTER or OK.
mkdir Creates the specified directory and optionally its parent directories.
monowrap Generates scripts for automatically invoking Mono when invoking a NutBox command.
nutmake A simple ad-hoc make tool that uses the same make file (Nutmakefile) for all platforms.
pathcheck Performs various integrity checks on the PATH environment variable.
ps Displays a list of currently running processes.
pwd Prints the current working directory.
rm Removes files and/or directories.
showkey Displays the .NET names of keys pressed in an interactive session.
showtime Displays the current time in a standardized format (YYYY.MM.DD.HH.MM.SS).
sleep Waits the specified amount of time.
sort Sorts the specified file or standard input and writes the result to standard output.
strings Displays the strings embedded in a binary file (Unicode aware!).
tail Displays the last N lines of standard input or a file.
tee Displays data from the standard input device on the console while writing it to a file.
touch Updates a file’s time stamp or creates a new file if it does not exist.
trim Trims extraneous white-space off each line and empty lines off the end of the file.
true Always does nothing (its return code is zero, which is significant in some scripts).
txt2c Converts any given text file into a C string or array of strings.
txt2cs Converts any given text file into a C# string or array of strings.
uniq Filters out successive identical lines so that only the first one remains.
view Displays one or more files interactively on the console (very primitive!).
wc Counts characters, words, and lines in one or more files (GNU compatible).
week Displays the number of the current week.
which Displays the first or all occurrences of a specified file name.
whoami Displays the name of the currently active user.
yes Displays the specified string over and over until the process is terminated.

This website is maintained by .  Copyleft (-) 2009-2012 Mikael Lyngvig.  No rights reserved.