Mac技巧

作者: 卡农me | 来源:发表于2018-04-17 16:26 被阅读10次

    1.剪切、粘贴:cmd+c ---> cmd + opt + v

    2.权限问题

    (1) cd 你的文件夹路径的上一级目录。
    (2)sudo chmod -R 777 你的文件夹名。
    (3)输入密码。
    (4)成功

    3.通过ssh远程控制LInux系统

    命令:

    ssh 用户名@ip地址
    // 再输入密码
    

    若出现

    Permission denied (publickey).
    

    则需要修改系统文件

    vi /etc/ssh/sshd_config
    // 将no改为yes
    PasswordAuthentication no
    

    重启服务器,即可


    配置Mac的反键

    右键,将文件夹通过WebStorm打
    先运行Automator,选择“服务”:


    1. 在右侧面板选择“服务”收到选定的“文件夹”,位于“Finder.app“,该选项是为了从Finder中接收一个文件夹;
    2. 在左侧面板选择”实用工具“,然后找到”运行Shell脚本“,把它拽到右侧面板里;
    3. 在右侧”运行Shell脚本“的面板里,选择Shell”/bin/bash“,传递输入“作为自变量”,然后修改Shell脚本如下:
    for f in "$@"
    do
        open -a "WebStorm" "$f"
    done
    

    在上图可以勾选反键显示的功能

    Mac改变系统权限

    这里是tangchao staff,所以
    sudo chown -R tangchao:staff /Users/tangchao/

    chown -R root:mysql /usr/local/mysql 是什么意思呢
    将/usr/loca/mysql目录包含所有的子目录和文件,所有者改变为root,所属组改变为mysql

    相关文章

      网友评论

          本文标题:Mac技巧

          本文链接:https://www.haomeiwen.com/subject/uhkpkftx.html