- Advanced Infrastructure Penetration Testing
- Chiheb Chebbi
- 247字
- 2021-06-24 19:12:58
Linux commands
In this subsection, let's open the command line and execute some basic commands. In every Linux host, there are command-line interfaces named shells that interpret and execute typed commands and scripts. There are many shell environments, such as Bourne Again Shell (Bash, which is the most common shell), C shell (csh), Korn shell (ksh), and so on. To find the shells available for your environment, just open the command-line interface and type cat /etc/shells:

Now, let's get around some vital basic Linux commands from the shell:
- pwd: To know which directory you are in
- ls: To list files in a directory
- cd: To enter a directory
- mkdir: To create a new directory
- rmdir: To remove a directory
- touch: To create a new file
- cat: To read a file
- cp: To copy a file
- mv: To move a file
- man: To be shown how to use a command
Linux is case-sensitive (to give users many command option possibilities -T, - t, -a, - A, and so on), so you need to check how you are writing every command.
As a penetration tester, there are multiple important commands that you need to know in order to test the security posture of a Linux infrastructure:
- hostname: Information about the host
- cat /proc/version: Kernel information
- uname -r: Kernel release
- uname -a: More detailed information about the system
- cat /proc/cpuinfo: Reads information about the processor
- echo $PATH: Display information about the PATH variable
- history: Display command history
推薦閱讀
- 全屋互聯(lián):智能家居系統(tǒng)開發(fā)指南
- Linux Mint Essentials
- 循序漸進學Docker
- Windows Server 2012網絡操作系統(tǒng)企業(yè)應用案例詳解
- Linux就該這么學
- 網絡操作系統(tǒng)管理與應用(第三版)
- 8051軟核處理器設計實戰(zhàn)
- Application Development in iOS 7
- Fedora 12 Linux應用基礎
- Social Data Visualization with HTML5 and JavaScript
- 寫給架構師的Linux實踐:設計并實現(xiàn)基于Linux的IT解決方案
- 大學計算機應用基礎實踐教程(Windows 7+MS Office 2010)
- bash shell腳本編程經典實例(第2版)
- Office 365 User Guide
- OpenHarmony開發(fā)與實踐:基于紅莓RK2206開發(fā)板