辋川集

木末芙蓉花,山中发红萼,涧户寂无人,纷纷开且落

By - 陳 瞽鱦

Learning Mac Shell by Examples

Mac 的图形界面无可挑剔,但某些应用场合,命令行却显得轻快简洁。这里记录日常使用的 Shell 命令,持续更新,不再开新的日志。

从程序员的角度来看, Shell本身是一种用C语言编写的程序,从用户的角度来看,Shell是用户与Linux操作系统沟通的桥梁。用户既可以输入命令执行,又可以利用 Shell脚本编程,完成更加复杂的操作。在Linux GUI日益完善的今天,在系统管理等领域,Shell编程仍然起着不可忽视的作用。深入地了解和熟练地掌握Shell编程,是每一个Linux用户的必修功课之一。

Linux Shell脚本教程:30分钟玩转Shell脚本编程

Start goagent

echo "YOUR PASSWORD" | sudo -S python ~/goagent/3.0.8/local/proxy.py

Soft link for Sublime Text 2

sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

Change directory and run a bash

cd '/Users/Christen/Library/Application Support/RTXC/accounts/陈自新/sessionPhoto' && python delete_expired_file.py

Find the RTX Session Directory

~  sudo find / -name "sessionPhoto" -print

Password:
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Users/Christen/Library/Application Support/RTXC/accounts/陈自新/sessionPhoto

~  open '/Users/Christen/Library/Application Support/RTXC/accounts/陈自新/sessionPhoto'

Leave a Reply

Your email address will not be published.
*
*