0%

安装依赖环境

  • Ubuntu
1
sudo apt-get install -y cmake build-essential libreadline6-dev libncurses5-dev

获取 MySQL 安装包并解压

1
2
wget http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-5.6/mysql-5.6.38.tar.gz
tar -zxf mysql-5.6.38.tar.gz
阅读全文 »

重命名文件、文件夹

1
2
3
4
5
6
7
➜  ll
total 4.0K
drwxrwxr-x 2 atompi atompi 4.0K Jan 6 04:31 testdir-home-2
➜ mv testdir-home-1 testdir-home-2
➜ ll
total 4.0K
drwxrwxr-x 2 atompi atompi 4.0K Jan 6 04:31 testdir-home-2
阅读全文 »

复制文件

1
2
3
4
5
6
7
8
9
10
11
12
➜  ~ touch test.txt
➜ ~ cp test.txt test-copy.txt
➜ ~ cp test.txt ~/Downloads
➜ ~ ll ~/Downloads
total 540M
-rw-rw-r-- 1 atompi atompi 508M Jan 1 20:38 Anaconda2-5.0.1-Linux-x86_64.sh
drwxr-xr-x 36 atompi atompi 4.0K Jan 5 05:59 mysql-5.6.38
-rw-rw-r-- 1 atompi atompi 31M Sep 13 06:58 mysql-5.6.38.tar.gz
drwxrwxr-x 6 atompi atompi 4.0K Sep 21 07:20 redis-3.2.11
-rw-rw-r-- 1 atompi atompi 1.5M Sep 21 07:20 redis-3.2.11.tar.gz
drwxrwxr-x 3 atompi atompi 4.0K Jan 6 04:19 testdir
-rw-rw-r-- 1 atompi atompi 0 Jan 6 04:23 test.txt
阅读全文 »

创建空目录

1
2
3
4
5
6
7
8
9
10
11
12
➜  Downloads mkdir testdir
➜ Downloads ll
total 540M
-rw-rw-r-- 1 atompi atompi 508M Jan 1 20:38 Anaconda2-5.0.1-Linux-x86_64.sh
drwxr-xr-x 36 atompi atompi 4.0K Jan 5 05:59 mysql-5.6.38
-rw-rw-r-- 1 atompi atompi 31M Sep 13 06:58 mysql-5.6.38.tar.gz
drwxrwxr-x 6 atompi atompi 4.0K Sep 21 07:20 redis-3.2.11
-rw-rw-r-- 1 atompi atompi 1.5M Sep 21 07:20 redis-3.2.11.tar.gz
drwxrwxr-x 2 atompi atompi 4.0K Jan 6 04:18 testdir
-rw-rw-r-- 1 atompi atompi 0 Jan 6 04:04 test.txt
➜ Downloads ll testdir
total 0
阅读全文 »

将文件改为当前时间

1
2
3
4
5
6
7
8
9
➜  ~ date
Sat Jan 2 20:38:43 PST 2018
➜ ~ ll Anaconda2-5.0.1-Linux-x86_64.sh
-rw-rw-r-- 1 atompi atompi 508M Jan 2 20:38 Anaconda2-5.0.1-Linux-x86_64.sh
➜ ~ touch Anaconda2-5.0.1-Linux-x86_64.sh
➜ ~ ll Anaconda2-5.0.1-Linux-x86_64.sh
-rw-rw-r-- 1 atompi atompi 508M Jan 2 20:39 Anaconda2-5.0.1-Linux-x86_64.sh
➜ ~ date
Sat Jan 2 20:39:31 PST 2018
阅读全文 »

导航文件系统

列出当前目录的文件和文件夹

1
2
➜  ~ ls
anaconda2 atomsrc Documents Downloads Templates

列出指定目录的文件和文件夹

1
2
➜  ~ ls Downloads
Anaconda2-5.0.1-Linux-x86_64.sh mysql-5.6.38 mysql-5.6.38.tar.gz redis-3.2.11 redis-3.2.11.tar.gz
阅读全文 »