{{tag>InProgress}}
#### Task1 Introduction
本部分主要介绍一些命令的参数,介绍copy和move命令,以及访问文件和文件夹的方式等.
#### Task2 Accessing Your Linux Machine Using SSH (Deploy)
在Part1中我们可以通过浏览器连接到Linux机器上,这是因为我们使用的是SSH进行远程登录.
**What is SSH & how Does it Work?**
SSH:Secure Shell是一个协议,用于将两台设备间的通信加密.
**Deploying Your Linux Machine**
布置你的Linux机器,直接点击Start Machine按钮即可
**Deploying the TryHackMe Attackbox**
这个按钮在整个网页的最上方,点击Start AttackBox即可
**Using SSH to Login to your Linux Machine**
我们需要获得远程设备的IP地址,以及正确的登录凭证.这里IP/PW分别是tryhackme,tryhackme
所以对应的登录指令为:
root@ip-10-10-12-38:~# ssh tryhackme@10.10.37.165
The authenticity of host '10.10.37.165 (10.10.37.165)' can't be established.
ECDSA key fingerprint is SHA256:c/FrwCJJWUnNtf5/6wsQvZ0PM618AoDIbP9CJ465Kgk.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.10.37.165' (ECDSA) to the list of known hosts.
tryhackme@10.10.37.165's password:
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-1047-aws x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Mon May 27 13:22:08 UTC 2024
System load: 0.52 Processes: 111
Usage of /: 26.8% of 7.69GB Users logged in: 0
Memory usage: 23% IPv4 address for eth0: 10.10.37.165
Swap usage: 0%
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
tryhackme@linux2:~$
#### Task3 Introduction to Flags and Switches
每条命令都带有一些参数,比如ls命令,它用于列表所有当前目录的文件和文件夹.
如果后面加-a(是-all的缩写),会增加隐藏文件的显示.对任意命令后面加--help可以获取关于该命令的帮助.提供所有相关参数和解释说明.
tryhackme@linux2:~$ ls --help
Usage: ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.
Mandatory arguments to long options are mandatory for short options too.
-a, --all do not ignore entries starting with .
-A, --almost-all do not list implied . and ..
--author with -l, print the author of each file
-b, --escape print C-style escapes for nongraphic characters
--block-size=SIZE with -l, scale sizes by SIZE when printing them;
e.g., '--block-size=M'; see SIZE format below
-B, --ignore-backups do not list implied entries ending with ~
-c with -lt: sort by, and show, ctime (time of last
modification of file status information);
with -l: show ctime and sort by name;
otherwise: sort by ctime, newest first
-C list entries by columns
--color[=WHEN] colorize the output; WHEN can be 'always' (default
if omitted), 'auto', or 'never'; more info below
-d, --directory list directories themselves, not their contents
-D, --dired generate output designed for Emacs' dired mode
-f do not sort, enable -aU, disable -ls --color
-F, --classify append indicator (one of */=>@|) to entries
--file-type likewise, except do not append '*'
--format=WORD across -x, commas -m, horizontal -x, long -l,
single-column -1, verbose -l, vertical -C
--full-time like -l --time-style=full-iso
查询命令还可以使用Man(ual)页面,除了Linux设备自带,网上也可以查.https://linux.die.net/man/
比如man ls表示显示ls的命令说明.
命令说明可能会很长,可以使用方向键进行上下滚动,在命令后添加-h可以得到人类易读的版本.
:question: What directional arrow key would we use to navigate down the manual page?
down
:question: What flag would we use to display the output in a "human-readable" way?
-h
#### Task4 Filesystem Interaction Continued
#### Task5 Permissions 101
#### Task6 Common Directories
#### Task7 Conclusions and Summaries
#### Task8 Linux Fundamentals Part3