The Command Line Crash Course
Apr 15, 2014 · 1 分钟阅读

print working directory:

$ pwd

my computer's network name:

$ hostname

make directory:

$ mkdir directory_name

change directory:

$ cd
$ cd ~
$ cd ..
$ cd -

list directory:

$ ls
$ ls -al

remove directory:

$ rm file
$ rm -r file

push directory:

$ pushd

pop directory:

$ popd

making empty files:

$ touch file

copy a file or directory:

$ cp source_file target_file/target_directory
$ cp -r source_file target_directory

move a file or directory:

$ mv source target/directory

page through a file:

$ less/more filename

find files:

$ find . -name "*.txt" -print

find things inside files:

$ grep pattern file

read a manual page:

$ man name

look at your environment:

$ env | grep PATH

export/set a new environment variable:

$ export TESTING = "bada bada bing"
$ unset TESTING

print some arguments:

$ echo TESTING

change permission modifiers:

$ chmod

change ownership:

$ chown

create a zip file:

$ zip -r filename *
← Previous Post Next Post →

Ryun的博客
与其感慨路难行,不如马上出发。

atom css design git html javascript jekyll laravel life mac mobile optimization sublime tool vscode vue
mac

About

你好,❤朋友

这里是 Ryun 的博客 📝

📝记录了我学习 🔎的过程

作为一名前端攻城狮 🦁

希望能和大家一起 🔎

共同进步 🏃

🦁的特长:

  • HTML5
  • CSS3
  • JavaScript
  • Vue.js
  • 微信小程序
  • 熟练配合 Node.js、PHP 和 Laravel
  • 熟练使用各种开发和设计工具

🦁喜欢 🆒🆒的东西

对提升效率和美感的事物有兴趣 😋

欢迎 👏交流


see this hugo-theme-dream-ink