THE DFIR BLOG
Menu

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.

    Subscribe to Newsletter

    Mac Forensics
    Windows Forensics
    Forensic Tools

    Categories

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

    Archives

    August 2024
    July 2024
    January 2023
    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
  • Mac Forensics
  • Windows Forensics
  • Linux Forensics
  • Memory Forensics
  • Incident Response
  • Blog
  • About Me
  • Infosec
  • Mac Forensics
  • Windows Forensics
  • Linux Forensics
  • Memory Forensics
  • Incident Response
  • Blog
  • About Me