我有一个 MacOS X Mavericks 安装,该帐户只有一个用户管理员和空密码:

现在我正在尝试安装 Cocoapods,但不能使用“sudo”,因为我不知道root密码:
admin@mac:etc> id
uid=501(admin) gid=20(staff) groups=20(staff),401(com.apple.sharepoint.group.1),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),398(com.apple.access_screensharing),399(com.apple.access_ssh)
admin@mac:etc> id root
uid=0(root) gid=0(wheel) groups=0(wheel),1(daemon),2(kmem),3(sys),4(tty),5(operator),8(procview),9(procmod),12(everyone),20(staff),29(certusers),61(localaccounts),80(admin),401(com.apple.sharepoint.group.1),33(_appstore),98(_lpadmin),100(_lpoperator),204(_developer),398(com.apple.access_screensharing),399(com.apple.access_ssh)
admin@mac:etc> sudo gem install cocoapods
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
Sorry, try …Run Code Online (Sandbox Code Playgroud) 在 CentOS 6 Linux 上,我date +%a在几个 cronjobs 和脚本中使用来生成日志文件名称myprog-Tue.txt,多年来这对我来说效果很好。
但是现在对于一个程序,我需要删除以前的日志文件,即在我启动程序并将其输出重定向到之前的 cronjob 中myprog-Tue.txt,我想删除myprog-Wed.txt.
通过这种方式,我想清除旧的日志文件,但仍然有 5-6 天的日志文件。
所以我试过:
# date -v+1d +%a
date: invalid option -- 'v'
Try `date --help' for more information.
Run Code Online (Sandbox Code Playgroud)
有人知道这里出了什么问题吗?
在度假时,我总是购买本地 SIM 卡并使用 Android 的“移动热点”功能为两台 Windows XP Pro 笔记本电脑(我和我妻子的)提供互联网访问。
不幸的是,现在我一直使用这种方式的 Google Nexus One 手机坏了。
我还有一个旧的诺基亚 D211 PCMCIA 卡,我可以将它插入我妻子的 Thinkpad X61s。您可以将 SIM 卡插入其中并提供 GPRS 上网:

有什么我可以在我妻子的计算机上设置的东西,以便她可以共享/提供/转发互联网访问给我?