注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

My Unix World

不要迷恋Unix,Unix只是计算世界很小的一部分!

 
 
 

日志

 
 

Coreutils  

2009-01-12 16:46:09|  分类: linux-system |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
Util-Linux-ng与Coreutils的都是大包,都包含杂七杂八的一系列工具,这两个包的utilities构成了Unix Utility的基本集合,它们的不同在于,前者包含的工具侧重磁盘和系统操作,而后者包含的工具侧重目录文件操作和用户交互。
Coreutils-6.12
The Coreutils package contains utilities for showing and setting the basic system characteristics.

uname
    Reports system information
tty
    Reports the file name of the terminal connected to standard input
stty
    Sets or reports terminal line settings
hostid
    Reports the numeric identifier (in hexadecimal) of the host
id
    Reports the effective user ID, group ID, and group memberships of the current user or specified user
pinky
    Is a lightweight finger client; it reports some information about the given users
date
    Displays the current time in the given format, or sets the system date


hostname
    Reports or sets the name of the host
users
    Reports the names of the users currently logged on
groups
    Reports a user's group memberships
who
    Reports who is logged on
whoami
    Reports the user name associated with the current effective user ID
logname
    Reports the current user's login name


tee
    Reads from standard input while writing both to standard output and to the given files


yes
    Repeatedly outputs “y” or a given string until killed
echo
    Displays the given strings
seq
    Prints a sequence of numbers within a given range and with a given increment
printf
    Prints the given arguments according to the given format, much like the C printf function
printenv
    Prints the environment


chroot
    Runs a command with the specified directory as the / directory
base64
    Encodes and decodes data according to the base64 (RFC 3548) specification


sync
    Flushes file system buffers; it forces changed blocks to disk and updates the super block
df
    Reports the amount of disk space available (and used) on all mounted file systems, or only on the file systems holding the selected files
dd
    Copies a file using the given block size and count, while optionally performing conversions on it
shred
    Overwrites the given files repeatedly with complex patterns, making it difficult to recover the data


sleep
    Pauses for the given amount of time
nice
    Runs a program with modified scheduling priority
env
    Runs a command in a modified environment
nohup
    Runs a command immune to hangups, with its output redirected to a log file


true
    Does nothing, successfully; it always exits with a status code indicating success
false
    Does nothing, unsuccessfully; it always exits with a status code indicating failure
test
    Compares values and checks file types
expr
    Evaluates expressions


stat
    Displays file or filesystem status
ls
    Lists the contents of each given directory
du
    Reports the amount of disk space used by the current directory, by each of the given directories (including all subdirectories) or by each of the given files
pwd
    Reports the name of the current working directory
readlink
    Reports the value of the given symbolic link


dir
    Lists the contents of each given directory (the same as the ls command)
vdir
    Is the same as ls -l
dircolors
    Outputs commands to set the LS_COLOR environment variable to change the color scheme used by ls
dirname
    Strips the non-directory suffix from a file name
basename
    Strips any path and a given suffix from a file name


mkdir
    Creates directories with the given names
mkfifo
    Creates First-In, First-Outs (FIFOs), a “named pipe” in UNIX parlance, with the given names
mknod
    Creates device nodes with the given names; a device node is a character special file, a block special file, or a FIFO
mktemp
    Creates temporary files in a secure manner; it is used in scripts
rm
    Removes files or directories
rmdir
    Removes directories if they are empty


cp
    Copies files
mv
    Moves or renames files or directories
od
    Dumps files in octal and other formats
ln
    Makes hard links or soft (symbolic) links between files
link
    Creates a hard link with the given name to a file
unlink
    Removes the given file
chgrp
    Changes the group ownership of files and directories
chown
    Changes the user and/or group ownership of files and directories
chmod
    Changes the permissions of each file to the given mode; the mode can be either a symbolic representation of the changes to make or an octal number representing the new permissions
touch
    Changes file timestamps, setting the access and modification times of the given files to the current time; files that do not exist are created with zero length
install
    Copies files while setting their permission modes and, if possible, their owner and group


wc
    Reports the number of lines, words, and bytes for each given file, as well as a total line when more than one file is given
cat
    Concatenates files to standard output


head
    Prints the first ten lines (or the given number of lines) of each given file
tail
    Prints the last ten lines (or the given number of lines) of each given file
cut
    Prints sections of lines, selecting the parts according to given fields or positions


nl
    Numbers the lines from the given files
fold
    Wraps the lines in the given files
sort
    Sorts the lines from the given files
tsort
    Performs a topological sort; it writes a completely ordered list according to the partial ordering in a given file
tac
    Concatenates the given files in reverse


expand
    Converts tabs to spaces
unexpand
    Converts spaces to tabs
tr
    Translates, squeezes, and deletes the given characters from standard input
uniq
    Discards all but one of successive identical lines
shuf
    Shuffles lines of text


comm
    Compares two sorted files, outputting in three columns the lines that are unique and the lines that are common
split
    Splits the given file into pieces, by size or by number of lines
csplit
    Splits a given file into several new files, separating them according to given patterns or line numbers and outputting the byte count of each new file
paste
    Merges the given files, joining sequentially corresponding lines side by side, separated by tab characters
join
    Joins the lines that have identical join fields from two separate files


pr
    Paginates and columnates files for printing
ptx
    Produces a permuted index from the contents of the given files, with each keyword in its context
fmt
    Reformats the paragraphs in the given files


pathchk
    Checks if file names are valid or portable
sum
    Prints checksum and block counts for each given file
cksum
    Prints the Cyclic Redundancy Check (CRC) checksum and the byte counts of each specified file
md5sum
    Reports or checks Message Digest 5 (MD5) checksums
sha1sum
    Prints or checks 160-bit Secure Hash Algorithm 1 (SHA1) checksums
sha224sum
    Prints or checks 224-bit Secure Hash Algorithm checksums
sha256sum
    Prints or checks 256-bit Secure Hash Algorithm checksums
sha384sum
    Prints or checks 384-bit Secure Hash Algorithm checksums
sha512sum
    Prints or checks 512-bit Secure Hash Algorithm checksums
  评论这张
 
阅读(275)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017