科学网

 找回密码
  注册
Linux: whoami, echo, nano
刘洋洋 2017-9-5 04:42
1. 显示当前“操作用户”的用户名: whoami 2. 输出指定的字符串或变量:echo 3. 文本编辑器nano Ctrl+O - 保存 Ctrl+X - 退出 ...
个人分类: Linux|2157 次阅读|没有评论
Linux:Mac下用SSH连接远程Linux服务器
刘洋洋 2017-9-5 04:23
1.连接VPN 2.使用远程软件——小黄鸭 Cyberduck https://cyberduck.io/?l=en
个人分类: Linux|3645 次阅读|没有评论
Linux:截屏
刘洋洋 2017-9-5 03:53
1.同时按下 Shift 和 Print 2.按住鼠标左键拖动,截屏 3.保存截屏图片
个人分类: Linux|1651 次阅读|没有评论
Linux:在终端上用Geany或Sublime Text打开文本文件
刘洋洋 2017-8-30 15:49
方法一: 在终端中输入: $ open -a Geany $ open -a /Applications/Geany .app Sublime Text $ open -a /Applications/Sublime Text .app 注:空格的表示法为 空格 。 方法二: 1. 在.bashrc文件中添加如下路径并保存。 ...
个人分类: Linux|5518 次阅读|没有评论
Linux:在服务器上后台运行程序
刘洋洋 2017-4-3 16:48
See originals: https://www.howtoforge.com/linux_screen 使用SSH连接服务器并进行长时间计算时,经常出现连接意外断开的情形,使得程序运行功亏一篑。为避免这种情况,可以将任务在后台运行。如此,screen命令就应运而生了。 1. 创建一个名为matlab的screen session: screen -S matlab 2. 然后使用 以 ...
个人分类: Linux|3953 次阅读|没有评论
Linux: 查找软件安装路径
刘洋洋 2017-1-16 21:02
e.g. 查找gmt的安装路径 $ whereis gmt
个人分类: Linux|1983 次阅读|没有评论
mac/Linux:在文本文件中调出搜索框的快捷键
刘洋洋 2017-1-16 18:55
Linux: Ctrl+F mac: command+F
个人分类: Linux|2807 次阅读|没有评论
Linux: kill jobs
刘洋洋 2016-12-16 17:52
yliu@bkli03l007:~$ xkill Select the window whose client you wish to kill with button 1.... xkill: killing creator of resource 0x3c00df1 yliu@bkli03l007:~$ firefox 1338 yliu@bkli03l007:~$ (firefox:1338): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object ...
个人分类: Linux|2817 次阅读|没有评论
Shell: make your shell scripts executable
刘洋洋 2016-12-16 17:46
In some cases when: you get a shell script from other people; download it online or change the path of it etc., you may encounter such message - Permission denied - when it is run on your computer again. One possible reason is the shell script become inexecutable. Then do this in Linux t ...
个人分类: Linux|1634 次阅读|没有评论

本页有 1 篇博文因作者的隐私设置或未通过审核而隐藏

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-22 04:16

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部