Linux基础

本月要二战雅思,写一个简单的文章,介绍下Linux基础

Linux发行版本

KALI LINUX™是LINUX的开源发行版,广泛用于安全行业。这是因为KALI LINUX™(基于debian)预装了许多用于渗透测试和数字取证的有用工具。

Ubuntu是一个开源的、用户友好的发行版,广泛用于安全和其他行业。

还有RedHat、CentOS、Parrot等。

命令

1)pwd

The pwd command prints the working directory to the screen. Or in other words, it returns the directory that you’re currently in. 

2)ls

The ls command displays the names of the files and directories in the current working directory.

如果你想返回一个目录的内容,而不是你当前的工作目录,你可以在ls后面添加一个参数,其中包含所需目录的绝对或相对文件路径。

ls /home/analyst/reports | grep users 返回报告目录下包含users的文件名和目录名。

3)cd

The cd command navigates between directories.

4)cat

The cat command displays the content of a file.

5)head

The head command displays just the beginning of a file, by default 10 lines.

6)tail

The tail command does the opposite of head. This command can be used to display just the end of a file, by default 10 lines.

7)less

The less command returns the content of a file one page at a time.

8)mkdir

command creates a new directory

9)rmdir

The rmdir command removes, or deletes, a directory. For example, entering rmdir

rmdir 命令可除去或删除目录。例如,输入 rmdir /home/analyst/logs/network 将从文件系统中删除此空目录。

注: rmdir 命令无法删除包含文件或子目录的目录。例如,输入 rmdir /home/analyst 将返回错误消息。

10)touch

command creates a new file.

语法:touch 文件路径 文件名

11)rm

Removes, or deletes, a file

12)mv & cp

mv是移动文件, cp是复制文件

语法:命令 文件名 地址

13)chown

chown命令用来更改文件或目录的所有权。输入sudo chown fgarcia access.txt命令,将access.txt文件的用户属主修改为fgarcia。

14)Man

displays information on other commands and how they work. 如,输入man chown将返回有关chown的详细信息

  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值