知行

知是行之始,行是知之成


  • 首页

  • 分类

  • 归档

  • 标签
知行

when-update-layout

发表于 2016-07-26 |
知行

脚本命令

发表于 2016-07-25 | 分类于 Mac |

pwd: print working directory
cd: change directory
ls: list files and directories
less: view text files
file: classify a file's contents
cp: copy files and directories
mv: move or rename files and directories
rm: remove files and directories
mkdir: create directories
type: display information about command type
which: locate a command
help: display refrence page for shell builtin
man: display an on-line command refrence
chmod: modify file access rights
su: temporarily become the superuser
sudo: temporarily become the superuser
chown: change file ownership
chgrp: change a file’s group ownership

ps: list the processes running on the system
kill: send a signal to one or more processes
jobs: an alternate way of listing your own processes
bg: put a process in the background
fg: put a process in the forground

什么是命令

有四种

  1. An executable program
  2. A command built into the shell itself
  3. A shell function
  4. An alias
知行

NSArray Deep Copy

发表于 2016-07-22 | 分类于 iOS |

对NSArray调用copy方法,并不能对它的元素复制出另一个,只是增加了对NSArray的引用。或许你可以使用方法- initWithArray:copyItems:。但是对于数组中的元素是系统提供的类时,这个方法生成了一个新的数组,但该数组的元素并未创建,使用的还是之前数组中元素的地址。而对于自定义类,要求类实现NSCopying协议。

知行

梧桐影·落日斜

发表于 2016-07-20 | 分类于 古文 |

作者吕岩

落日斜,秋风冷。今夜故人来不来,教人立尽梧桐影。


知行

兰亭集序

发表于 2016-07-19 | 分类于 古文 |

作者王羲之

兰亭集序

永和九年,岁在癸丑,暮春之初,会于会稽山阴之兰亭,修禊事也。群贤毕至,少长咸集。此地有崇山峻岭,茂林修竹;又有清流激湍,映带左右,引以为流觞曲水,列坐其次。虽无丝竹管弦之盛,一觞一咏,亦足以畅叙幽情。是日也,天朗气清,惠风和畅,仰观宇宙之大,俯察品类之盛,所以游目骋怀,足以极视听之娱,信可乐也。

夫人之相与,俯仰一世,或取诸怀抱,悟言一室之内;或因寄所托,放浪形骸之外。虽趣舍万殊,静躁不同,当其欣于所遇,暂得于己,快然自足,不知老之将至。及其所之既倦,情随事迁,感慨系之矣。向之所欣,俯仰之间,已为陈迹,犹不能不以之兴怀。况修短随化,终期于尽。古人云:“死生亦大矣。”岂不痛哉!(不知老之将至 一作:曾不知老之将至)

每览昔人兴感之由,若合一契,未尝不临文嗟悼,不能喻之于怀。固知一死生为虚诞,齐彭殇为妄作。后之视今,亦犹今之视昔。悲夫!故列叙时人,录其所述,虽世殊事异,所以兴怀,其致一也。后之览者,亦将有感于斯文。

1234…7
知之行之

知之行之

随手记

32 日志
5 分类
18 标签
© 2020 知之行之
由 Hexo 强力驱动
主题 - NexT.Pisces