2018年2月19日 星期一

Linux/ Mac useful command

LINUX:
Check disk utility
    $df -l

RAR:http://note.drx.tw/2008/04/command.html
Package:
    $tar cvf FileName.tar DirName
Extract:
    $tar xvf FileName.tar

Without GUI, without FTP, we can still use SCP to transfer file
(met this problem when using UCR bolt server and , we can't setup anything without root authority)
http://itman.pixnet.net/blog/post/26644715-ssh---%E4%BD%BF%E7%94%A8-scp-%E6%8C%87%E4%BB%A4
    $scp /home/chenyang/m5_out.tar cyu059@bolt.cs.ucr.edu:/home/cyu059/m5_out.tar

MAC:
Force format hardisk:
    $diskutil list
    $sudo diskutil eraseDisk FAT32 CAM_STORE MBRFormat /dev/disk2

Home-brew
    https://mac-osx-for-newbie-book.kejyun.com/software/SoftwareManageHomebrew.html

Enter hidden folder
    Mac下/usr/local目录默认是对于Finder是隐藏,如果需要到/usr/local下去,打开Finder,
    然后使用command+shift+G,在弹出的目录中填写/usr/local就可以了。 

沒有留言:

張貼留言