DFIR Blog
  • Infosec
    • Blog
    • Threat Landscape
  • Digital Forensics
    • Windows Forensics
    • Mac Forensics
    • Memory Forensics
    • Forensic Resources
  • Incident Response
  • CISSP
    • Domain-1
    • Domain-2
    • Domain-3
    • Domain-4
    • Domain-5
    • Domain-6
    • Domain-7
    • Domain-8
  • Contact
  • HTB
  • Productivity

Blog

Basic Linux Commands

6/13/2015

 
Command Line Basics:
Standard Format : Command Options Arguments
1) Know current users: whoami
2) List files::
Command: ls
Options:

3) Create Directory:
Command: mkdir [Filename]
Creating files:

vim Filename.txt
vi Filename.txt
Press i to insert text
esc+wq! to save file

4) wc-wordcount
Command: wc [FILENAME]

5) mv- move
Syntax: mv [FILENAME] 

[Destination]

Rename
mv [FirstFilename] 

[SecondFilename]

Remove Files/Dir
Syntax: rm -r [Filename]
-r: Recrusive

Info about interface:
Syntac: ifconfig

Present working directory
Syntax: pwd

Change  to Home directory
-cd ~

Everything is inside the / 

just like everything in 

windows ins in C: or some 

drive. 

Tab key to complete the 

command

-How to check command 

History

Syntax: history

Create a text file of a 

History:

history > XYZ.txt

Clear Screen
Syntax: Ctrl+L

Comments are closed.

    Mac Forensics
    Windows Forensics
    Forensic Tools

    Categories

    All
    Attack
    Bash
    Bigdata
    Corporate
    Ctf
    Data
    Digital Forensics
    Docker
    EDR
    Forensics
    Hacking
    Hadoop
    HDFS
    Health Care
    Linux
    Memory
    Network
    Network Forensics
    PCIP
    SQL
    Windows
    Wireshark

    Archives

    October 2019
    September 2019
    July 2019
    June 2019
    May 2019
    March 2019
    April 2018
    March 2018
    February 2018
    July 2017
    June 2017
    May 2017
    November 2015
    October 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015

    RSS Feed

  • Infosec
    • Blog
    • Threat Landscape
  • Digital Forensics
    • Windows Forensics
    • Mac Forensics
    • Memory Forensics
    • Forensic Resources
  • Incident Response
  • CISSP
    • Domain-1
    • Domain-2
    • Domain-3
    • Domain-4
    • Domain-5
    • Domain-6
    • Domain-7
    • Domain-8
  • Contact
  • HTB
  • Productivity