请注意,下面有些命令是错误的(只需要看红色的):
1 pwd
2 uname3 uname -a
4 sudo apt-get source ssh
5 sudo apt-get clean
6 vim
7 vi
8 clear
9 sudo apt-get remove ssh
10 ps -ef | grep ssh
11 sudo apt-get update
12 ps -ef
13 ps -ef | grep git
14 git
15 sudo apt-get install git
16 git
17 sudo apt-get install java6
18 sudo apt-get install java1.6
19 sudo apt-get install sun-java6-jdk
20 sudo apt-get install sun-java6-jdk1.2.3 次奥,这几个命令没找到java包
21 java -version
22 ssh -version
23 ssh
24 hadoop -version
25 rd
26 sd
27 rz
28 sz
29 sudo apt-get install lrzsz 需要安装后,rz,sz才能使用
30 rz
31 sz
32 sz --help
33 rz
34 git
35 git -version
36 git show
37 git show 6ff87c4664
38 tree
39 tree -L 1
40 sudo apt-get install tree 需要安装后tree命令才能使用
41 tree -L 1
42 ps -ef | grep git
43 sudo apt-get install git
44 git
45 git status
46 git tag
47 git add
48 git config --global user.name "zhou.yuanlong"
49 git config --global user.email "ylchou@qq.com"
50 pwd
51 cd /home/slave1/
52 ll
53 nano .gitconfig
54 history
55 git config --global user.email "zhou.yuanlong@qq.com" 会覆盖上面的
56 cd /home/slave1/
57 pwd
58 nano .gitconfig
59 clear
60 git clone git://git.kernel.org/pub/scm/git/git.git
61 ll
62 cd git/
63 ll
64 ls
65 pwd
66 ls .
67 cd ..
68 chmod ./projectTest
69 touch ./projectTest/bei.txt
70 mkdir ./projectTest 创建目录
71 touch ./projectTest/git1.txt 创建文件,不能再不存在的目录中创建
72 touch ./projectTest/git2.txt
73 touch ./projectTest/git3.txt
74 cd ./projectTest/
75 ls -lr
76 ls -lsa
77 cd ..
78 pwd
79 cd ./projectTest/
80 git init
81 ll
82 git status
83 git add file1.txt file2.txt
84 touch file1.txt
85 touch file2.txt file3.txt 一次创建多个文件
86 ll
87 git status
88 git add file1.txt
89 git status
90 git add file2.txt git1.txt git2.txt
91 git status
92 git --cached
93 git diff --cached
94 git commit
95 git status
96 git commit -a
97 clear
98 git branch
99 git branch projectTest2 这两个命令不知怎么没效果
100 vi file1.txt
101 git status
102 git commit -a
103 git status
104 git branch
105 git branch sss
106 cd ..
107 git branch
108 history