terminal Flashcards
1
Q
copy files?
A
cp source destination
2
Q
download files?
A
wget source
3
Q
unzip files?
A
unzip filename.zip
4
Q
gzip files?
A
tar -czvf name.tgz ~/dir
5
Q
unzip tgz files?
A
tar -xzvf ~/dir.tgz
6
Q
可用空格翻页
A
More
7
Q
将输出值传入
A
|
8
Q
输出值写入并覆盖文件
A
>
9
Q
输出值连缀在文件内容后面
A
> >
10
Q
recursively, for all files under that directory
A
-R
11
Q
remove files?
A
rm file1 file2
12
Q
remove a directory?
A
rm -v dir
13
Q
create nested directories?
A
mkdir -p a/b/c
14
Q
what does -rwxrwxrwx mean?
A
- means it’s a file, rather than a directorythey’re user, group, othersrwx: read, write, execute (must be executable)
15
Q
change mode, user could read/write, group could read?
A
chmod u=rw,g=r file