脚本命令
pwd: print working directorycd: change directoryls: list files and directoriesless: view text filesfile: classify a file's contentscp: copy files and directoriesmv: move or rename files and directoriesrm: remove files and directoriesmkdir: create directoriestype: display information about command typewhich: locate a commandhelp: display refrence page for shell builtinman: display an on-line command refrencechmod: modify file access rightssu: temporarily become the superusersudo: temporarily become the superuserchown: change file ownershipchgrp: change a file’s group ownership
ps: list the processes running on the systemkill: send a signal to one or more processesjobs: an alternate way of listing your own processesbg: put a process in the backgroundfg: put a process in the forground
什么是命令
有四种
- An executable program
- A command built into the shell itself
- A shell function
- An alias
NSArray Deep Copy
对NSArray调用copy方法,并不能对它的元素复制出另一个,只是增加了对NSArray的引用。或许你可以使用方法- initWithArray:copyItems:。但是对于数组中的元素是系统提供的类时,这个方法生成了一个新的数组,但该数组的元素并未创建,使用的还是之前数组中元素的地址。而对于自定义类,要求类实现NSCopying协议。
梧桐影·落日斜
作者吕岩
落日斜,秋风冷。今夜故人来不来,教人立尽梧桐影。
兰亭集序
作者王羲之

永和九年,岁在癸丑,暮春之初,会于会稽山阴之兰亭,修禊事也。群贤毕至,少长咸集。此地有崇山峻岭,茂林修竹;又有清流激湍,映带左右,引以为流觞曲水,列坐其次。虽无丝竹管弦之盛,一觞一咏,亦足以畅叙幽情。是日也,天朗气清,惠风和畅,仰观宇宙之大,俯察品类之盛,所以游目骋怀,足以极视听之娱,信可乐也。
夫人之相与,俯仰一世,或取诸怀抱,悟言一室之内;或因寄所托,放浪形骸之外。虽趣舍万殊,静躁不同,当其欣于所遇,暂得于己,快然自足,不知老之将至。及其所之既倦,情随事迁,感慨系之矣。向之所欣,俯仰之间,已为陈迹,犹不能不以之兴怀。况修短随化,终期于尽。古人云:“死生亦大矣。”岂不痛哉!(不知老之将至 一作:曾不知老之将至)
每览昔人兴感之由,若合一契,未尝不临文嗟悼,不能喻之于怀。固知一死生为虚诞,齐彭殇为妄作。后之视今,亦犹今之视昔。悲夫!故列叙时人,录其所述,虽世殊事异,所以兴怀,其致一也。后之览者,亦将有感于斯文。