
正文
pinky命令linux linux的ping命令大全
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
如何在windows上运行使用linux下面的命令
让windows cmd也用上linux命令
使用Linux时间长了 还是对Linux强大的命令折服,虽说Windows中doc肯定也会有命令,但是感觉一个是熟悉程度不佳,另一个就是不够强大。所以想在Windows下使用Linux命令,进行一些问题处理
我遇到一个在Windows下想看下文件的格式,因为是别人从数据库中导出的大文件,上几个G的文件,打开就报内存不够,要不就是txt好久无响应。
有这个想到了Linux的more命令 由此想装个支持Linux命令的工具(当然另外的解决办法也有装一个Linux虚拟机,但是还需要再上传,不是好的解决办法)
先,下载Cygwin安装程序
安装:
1. 双击setup.exe
2. 按照安装提示“下一步”
3. 选择从“互联网”安装:
4. 选择安装的路径,一般是C:\Cygwin,选择本地临时目录,用于存放下载的软件;选择您连接互联网的方式,一般选“直接连接”就可以了。
5. 选择下载源.
6. 根据安装提示,选择需要安装的软件包,完成安装。
使用
1. 双击桌面的Cygwin图标,即可启动Cygwin里的Bash。
2. 或者,你可将C:/Cygwin/bin加到%PATH%当中,您就可以直接在cmd.exe里面使用Linux命令了,比如less, cat, wc , wget
3. 如果您有一个Bash脚本,您可以直接用C:/Cygwin/bin/bash.exe X:/scripts/Monitor.sh的形式调用。
/////////////////////////////////////////////////////
(gnuwin32首页:)
1.先下载wget,下下来放到C:\WINDOWS下,就能像linux下一样直接用了
2.本地语言支持库LibIntl(以下软件包用wget下载比较好,迅雷等下载器对付http\ftp不稳定):
3.字符编码切换库
4.Linux核心命令库:
5.安装说明:
1)解压文件coreutils-5.3.0-bin.zip到C:\WINDOWS\coreutils-5.3.0-bin
2)解压文件libiconv-1.9.2-1-bin.zip,并且把目bin下的文件复制到C:\WINDOWS\coreutils-5.3.0-bin\bin下
3)解压文件libintl-0.14.4-bin.zip,并且把目bin下的文件复制到C:\WINDOWS\coreutils-5.3.0-bin\bin下
4)我的电脑上右键--属性--高级环境变量
在环境变量Path中增加最后一句";C:\WINDOWS\coreutils-5.3.0-bin\bin"(不包含引号,别把原来的删了)
装好后有以下命令可用了(“[”是什么命令,没见过。。):
[,basename,cat,chgrp,chmod,chown,chroot,cksum,comm,cp,csplit,cut,date,dd,
df,dir,dircolors,dirname,du,echo,env,expand,expr,factor,false,fmt,fold,
gdate,gecho,ginstall,gln,gmkdir,grmdir,groupsgsort,head,hostid,hostname,id,
install,join,kill,link,ln,logname,ls,md5sum,mkdir,mkfifo,mknod,mv,nice,
nl,nohup,od,paste,pathchk,pinky,pr,printenv,printf,ptx,pwd,readlink,rm,
rmdir,seq,setuidgid,sha1sum,shred,sleep,sort,split,stat,stty,su,sum,sync,
tac,tail,tee,test,touch,tr,true,tsort,tty,uname,unexpand,uniq,unlink,
uptime,users,vdir,wc,who,whoami,yes
6.缺少的命令:
1)
grep
wget -c
解压后把bin下的三个文件放到C:\WINDOWS\coreutils-5.3.0-bin\bin,可见egrep、fgrep也有了
现在gre
相关问答
Q1: linux系统怎么关机?
直接按开机的电源键。
linux下,按 电源键会产生关机消息,接收消息的脚本会调用关机命令关机,与手动输入关机命令,或者使用鼠标点击菜单,对话框关机的过程是完全一样的。
我在win7,winxp下也是,很方便,它们都和菜单,对话框的关机效果一样。
我使用的是ubuntu12.04 server版,系统中电源键关机脚本是
其它linux发行版也差不多,都有自己的处理脚本
/etc/acpi/powerbtn.sh
#!/bin/sh
# /etc/acpi/powerbtn.sh
# Initiates a shutdown when the power putton has been
# pressed.
[ -r /usr/share/acpi-support/power-funcs ] . /usr/share/acpi-support/power-funcs
# getXuser gets the X user belonging to the display in $displaynum.
# If you want the foreground X user, use getXconsole!
getXuser() {
user=`pinky -fw | awk '{ if ($2 == ":'$displaynum'" || $(NF) == ":'$displaynum'" ) { print $1; exit; } }'`
if [ x"$user" = x"" ]; then
startx=`pgrep -n startx`
if [ x"$startx" != x"" ]; then
user=`ps -o user --no-headers $startx`
fi
fi
if [ x"$user" != x"" ]; then
userhome=`getent passwd $user | cut -d: -f6`
export XAUTHORITY=$userhome/.Xauthority
else
export XAUTHORITY=""
fi
export XUSER=$user
}
# Skip if we just in the middle of resuming.
test -f /var/lock/acpisleep exit 0
# If the current X console user is running a power management daemon that
# handles suspend/resume requests, let them handle policy This is effectively
# the same as 'acpi-support's '/usr/share/acpi-support/policy-funcs' file.
[ -r /usr/share/acpi-support/power-funcs ] getXconsole
PMS="gnome-settings-daemon kpowersave xfce4-power-manager"
PMS="$PMS guidance-power-manager.py dalston-power-applet"
if pidof x $PMS /dev/null; then
exit
elif test "$XUSER" != "" pidof dcopserver /dev/null test -x /usr/bin/dcop /usr/bin/dcop --user $XUSER kded kded loadedModules | grep -q klaptopdaemon; then
exit
elif test "$XUSER" != "" test -x /usr/bin/qdbus; then
kded4pid=$(pgrep -n -u $XUSER kded4)
if test "$kded4pid" != ""; then
dbusaddr=$(su - $XUSER -c "grep -z DBUS_SESSION_BUS_ADDRESS /proc/$kded4pid/environ")
if test "$dbusaddr" != "" su - $XUSER -c "export $dbusaddr; qdbus org.kde.kded" | grep -q powerdevil; then
exit
fi
fi
fi
# If all else failed, just initiate a plain shutdown.
/sbin/shutdown -h now "Power button pressed"
所谓的不能直接按电源键关机的说法,是15年前的老电脑,
它们的关机键,就是一个简单的电源开关,与拔电源的效果是一样的,
瞬间断电,
对于现在的电源管理方式,没有权威的人提出这个,没有必要,成为一种固定模式了,
教材也一直沿用以前的说法
Q2: poky中如何添加食谱
poky是一个distributionpinky命令linux,采用 openembedded 构建,包含一个基于GNOME的embedded linux software stack。poky封装了openembedded,选择了openembedded的核心,外加更多的脚本,作为开发者,如果想学习openembedded这一强大的工具,建议从poky开始。即便如此,poky的学习曲线仍然是陡峭的(虽然很好用)。
poky的思想大致是pinky命令linux:开发者提供元数据(食谱或菜谱),每份食谱都是描述某个软件的‘清单’,比如源代码从哪里下载,需要哪些补丁文件,可能需要的特殊编译链接选项,打包时的需要的特殊配置,依赖其他什么软件等信息。食谱是由一种标记性的语言所写,由元工具(bitbake)解析、执行。元工具则抽象了构建一个软件过程中的fetch,unpack,patch,configure,compile,package等任务;同时,元工具还负责按不同软件之间的依赖关系有序的执行。
我最早接触的poky其实已经不是当前最新的poky了。如果用git来取得poky的源码仓库的话,那其实是名叫pinky-3.1的分支。可惜这个分支从09年左右就停止维护了,现在的poky(如master分支)叫"Yocto",这应该已经是OpenHand被intel收购之后的事了。成为Yocto之后,poky已不再简单地定位为一个distribution,而是一个tool-maker,或者是“ 协作开发软件,增加了更多的模版、脚本、工具等,来帮助开发者定制嵌入式系统 ”,相对于增加了更多layers的Yocto,早期的poky(pinky)显得更“单纯”,简单的说,就是更少的文件(meta bb file,meta class file等)。对于一个初学者来说,这意味着遇到问题后更容易解决(不管你的native system同poky要求的多么匹配,问题仍然是难免的)。当然,缺点就是不再被社区支持后,各软件包的版本均停留在了pinky-3.1发布的那一刻,想升级,想使用更新的软件的话,要么就老老实实切换到poky(Yocto),与社区同步;要么就Do It Yourself。相对与前者,后者这种行为无疑是‘重新发明轮子’,但重新发明轮子有时也不是一件坏事,按候捷的话说(非原话)“学往深处学,用往易处用”。用我的话来说,就是“想学会游泳的方法就是下水”。下面,我就从零开始自己动手添加一个食谱,这个食谱将产生一个较新的linux内核包(2.6.37),取代poky(pinky)中还较早版本(2.6.24)的内核,以此来学习poky,bitbake中的一些概念。
Q3: linux 下的 coreutils是做什么用的
coreutils 是GNU下的一个软件包,包含linux下的 ls等常用命令。这些命令的实现要依赖于shell程序。
一般在系统中都默认安装,也可自己安装或更新。
例如,安装coreutils-6.7.tar.gz ,安装后,
打开你的linux,执行如下:(Debian,gentoo例外)
[root@lee ~]# rpm -qi coreutils-5.2.1-32
Name : coreutils Relocations: (not relocatable)
Version : 5.2.1 Vendor: (none)
Release : 32 Build Date: 2006年07月13日 星期四 00时12分39秒
Install Date: 2007年03月15日 星期四 11时50分49秒 Build Host: koumei.asianux.com
Group : System Environment/Base Source RPM: coreutils-5.2.1-32.src.rpm
Size : 8089056 License: GPL
Signature : (none)
URL :
Summary : The GNU core utilities: a set of tools commonly used in shell scripts
Description :
These are the GNU core utilities. This package is the combination of
the old GNU fileutils, sh-utils, and textutils packages.
它包含有三个基本的套件,文件、shell、文本,各包含的程序如下:
1、文件套件
chgrp - Changes file group ownership.
chown - Changes file ownership.
chmod - Changes file permissions.
cp - Copies files.
dd - Copies and converts a file.
df - Shows disk free space on filesystems.
dir - Gives a brief directory listing.
dircolors - Setup program for the color output of GNU ls.
du - Shows disk usage on filesystems.
install - Copies file and sets its permissions.
ln - Creates file links.
ls - Lists directory contents.
mkdir - Creates directories.
mkfifo - Creates FIFOs (named pipes).
mknod - Creates special files.
mv - Moves files.
rm - Removes (deletes) files.
rmdir - Removes empty directories.
shred - Destroy data in files.
sync - Synchronizes filesystem buffers and disk.
touch - Changes file timestamps.
vdir - Long directory listing.
2、shell套件
[ - Check file types and compare values
basename - Removes the path prefix from a given pathname.
chroot - Changes the root directory.
date - Prints/sets the system date and time.
dirname - Removes the last level or filename from a given pathname.
echo - Prints a line of text.
env - Displays/modifies the environment.
expr - Evaluates expressions.
factor - Prints prime factors.
false - Returns an unsuccessful exit status.
groups - Print the groups that the user is a member of.
hostid - Print the numeric identifier for the current host
hostname - Print or set the machine name.
id - Print real/effective uid/gid.
logname - Print current login name.
nice - Modify scheduling priority.
nohup - Allows a command to continue running after logging out.
pathchk - Check file name portability.
pinky - Lightweight finger
printenv - Prints environment variables.
printf - Formats and prints data.
pwd - Print the current working directory.
seq - Print numeric sequences.
sleep - Suspends execution for a specified time.
stty - Print/change terminal settings.
su - Allows you to adopt the id of another user or superuser.
tee - Sends output to multiple files.
test - Evaluates an expression.
true - Returns a successful exit status.
tty - Print terminal name.
uname - Print system information.
users - Print current user names.
who - Print a list of all users currently logged in.
whoami - Print effective user id.
yes - Print a string repeatedly.
3、文本操作套件
cat - concatenate files and print to the standard output
cksum - checksum and count the bytes in a file
comm - compare two sorted files line by line
csplit - split a file into sections determined by context lines
cut - remove sections from each line of files
expand - convert tabs to spaces
fmt - simple optimal text formatter
fold - wrap each input line to fit in specified width
join - join lines of two files on a common field
md5sum - compute and check MD5 message digest
nl - number lines of files
od - dump files in octal and other formats
paste - merge lines of files
pr - convert text files for printing
ptx - produce a permuted index of file contents
sort - sort lines of text files
split - split a file into pieces
sum - checksum and count the blocks in a file
tac - concatenate and print files in reverse
tail - output the last part of files
tr - translate or delete characters
tsort - perform topological sort
unexpand - convert spaces to tabs
uniq - remove duplicate lines from a sorted file
wc - print the number of bytes, words, and lines in files
head - output the first part of files
Q4: 《女人出轨》 最后bill怎么了 寝为什么会被人阉了 被谁阉了啊
bill因为用刀杀了josephine所以被及时赶到pinky命令linux的黑白哥开枪打死了。
因为bill是个双性恋,同时跟男跟女都在玩,josephine喜欢alice,因为alice的老公出轨,但alice又太保守,不愿意去找男妓做以牙还牙这种事。所以就付钱给bill让bill来泡alice(毕竟bill很帅、又有泡妞经验,很容易就泡到了因老公出轨伤心落寞的alice)。
但是男妓只是男妓,表面上和你打得火热,哪里会真心爱你,再说bill太抢手,阔太太都抢着找pinky命令linux他陪。所以alice爱上了bill,但是bill内心根本不把alice放在眼里。bill被男人包养,又同时偷偷去做男妓其实都是为了钱,他只爱他自己。
同时bill有自己的双胞胎弟弟ben,因为从小都是ben听bill的话,所以bill总命令ben给自己做替接。就是两人一夜轮流对付一个或几个女人,(毕竟是双胞胎,很难分出来)这样会让那些客人以为bill这人真那么神武……(试想一下,如果bill一晚上能做3次。ben能做3次,同时轮流对付一个女人。。。那那个女人岂不是会认为bill一个人就做了六次= =,对bill产生‘神人’的印象。)
可是因为alice真心爱上了Bill,也是真心对他好嘛。大概是ben为bill做替接,接到alice的活的时候。发现了alice对自己真的很好,ben一见倾心爱上了alice。于是陪在alice身边(其实一开始alice也因为陪在自己身边的人不是Bill,而是给他做替接的ben而感到无法接受,但是因为ben真的很贴心,所以alice才发现ben才是真心爱自己,所以爱上了ben)
ben不愿意再去帮bill,bill当然忙不开啦。每天晚上要应付几个客人的话,肯定是要虚的=。=,而且别忘了还有一个包养他的男人呢。bill正忙着招呼pinky的时候,pinky的保镖希望她醒悟,不要再不顾家地在外面玩了。带着pinky的儿子来那个夜店找到了正和bill打得火热的pinky,一酒瓶就打破了bill的头。pinky吃惊又愧疚地搂着自己的儿子不停地说“妈妈错了……”,与此同时包养bill的男人也生气地在夜店找到了bill,说pinky命令linux:“pinky命令linux我说给你打电话怎么老不接,原来真的在这里pinky命令linux!”那个人就是pinky的老公(这一家子……)。同时都跟bill有染的pinky夫妻两人外加一可怜的儿子三人目瞪口呆地互相看着,然后终于都醒悟了,搂在一起哭。
夜店负责人Man爸一听说bill搞了人家两口子一下就火了。毕竟Man爸哪里允许自己手下的男妓是‘双性插座’(Man爸自己说的@_@),阔太太们肯定觉得有艾滋/不干净/不乐意。
bill在那家夜店估计是要身败名裂了、干不下去了。想想这一切不都是因为ben被alice迷住了,不愿意给自己做替接了。想找alice报复却找不到她在哪,想想alice不也是josephine介绍的嘛。这一切都要归罪于josephine,于是一怒之下用刀捅了josephine。josephine的老公黑白哥及时赶到,开枪打死了bill,可是josephine已经不行了。
打了这么多我都把大部分内容捋了一遍了。。@_@18我是纯手打滴吖。怎么也应该把最佳答案给我吧。另外没有人被阉啊,楼主搞错了啦。
关于pinky命令linux和linux的ping命令大全的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。








