Category Archives: linux

vi 常用命令行

删除m-n行: m,nd 删除所有: ctrl+G到行尾, :1,.d 删除所有   1. vim #在命令行中输入vim,进入vim编辑器 2. i #按一下i键,下端显示... Read More | Share it now!

Fixing npm permissions

https://docs.npmjs.com/getting-started/fixing-npm-permissions   You may receive an EACCES error when you try to install a package globally. This indicates that you do not have permission to write to the directories that npm uses to store global... Read More | Share it now!

npm-g_nosudo do npm without sudo

npm-g_nosudo https://github.com/glenpike/npm-g_nosudo sh: http://download.huangshiyang.com/shell/npm-g-nosudo.sh A shell script which will fix the problem where you want to stop using sudo for npm -g on Ubuntu. Inspired by a day trying to sort various... Read More | Share it now!

Protected: webStorm pw:asdf1234

There is no excerpt because this is a protected post.

【转】vim基本命令

1. vim #在命令行中输入vim,进入vim编辑器 2. i #按一下i键,下端显示 –INSERT– #插入命令,在vim中可能任意字符都有作用 3. Esc #退出i(插入)命令进行其它命令使用 4. :r... Read More | Share it now!

【转】Linux中shell文件操作大全

%%1 = filename   1.创建文件夹 #!/bin/sh mkdir -m 777 “%%1” 2.创建文件 #!/bin/sh touch “%%1” 3.删除文件 #!/bin/sh rm -if “%%1” 4.删除文件夹 #!/bin/sh rm -rf... Read More | Share it now!

【转】Linux必学的60个命令

Linux必学的60个命令 Linux提供了大量的命令,利用它可以有效地完成大量的工 作,如磁盘操作、文件存取、目录操作、进程管理、文件权限设定等。所以,在Linux系统上工作离不开使用系统提供的命令。要想真正理解Linux系统, 就必须从Linux命令学起,通过基础的命令学习可以进一步理解Linux系统。 不同Linux发行版的命令数量不一样,但Linux发行版本最少的命令也有200多个。这里笔者把比较重要和使用频率最多的命令,按照它们在系统中的作用分成下面六个部分一一介绍。 ◆... Read More | Share it now!

【转】Permission denied chmod .sh

一、发现问题 执行.sh文件报错 ./excute.sh -bash: ./excute.sh: Permission denied 修改权限:chmod 775 excute.sh 二、chmod命令详解 文件/目录权限设置命令:chmod... Read More | Share it now!