首页 > 代码库 > Java应用基础微专业-工程篇

Java应用基础微专业-工程篇

第1章-命令行

1.1 命令行基础

ls -a: list all files (including hidden files)

.DS_Store: files detailed information in the directory

cd: back to home directory ( or cd ~)

cd -: back to the previous directory

~ : the home directory

cd ~username: going to the home directory of the user named username

.. : the upper directory

. : the current directory

(eg: ./excutableProgram) -- why? for security reason: 

what if someone has a virus program named ls in a directory? You are gonna run it when u want to "list".

You are gonna run it when u want to "list".

--> ./ls will be more secure.

mv file1 file2/ mv dir1 dir2: rename -- actually: move file1/dir1 to file2/dir2

when using rm to delete a file, the file is legit gone.

rmdir a non-empty directory, it will say "Directory not empty"

solution: rm -rf dir : r: recursive f: forced -- delete the whole directory including the files & dirs in it

cp sourceFile destinationDirectory: copy and paste sourceFile to destinationDirectory

mv file existDestinationDirectory: cut and paste file to existDestinationDirectory

 

 

 

1.2 命令行操作和配置

1.3 和网络有关的操作

第2章-Git

2.1 版本控制简介

2.2 分支模型

2.3 Git

第3章-Maven

3.1 Maven实战

3.2 Maven核心概念

Java应用基础微专业-工程篇