Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
22 views
2 pages
Chee T Sheet
Uploaded by
muskanh215
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Download
Save
Save Chee t Sheet For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
22 views
2 pages
Chee T Sheet
Uploaded by
muskanh215
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Chee t Sheet For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Chee t Sheet For Later
You are on page 1
/ 2
Search
Fullscreen
tar -czvf info.tar.
gz info Get-CimInstance -ClassName Win32_LogicalDisk
linmid<x><SGL>.txt hka92 (Get-CimInstance -ClassName Win32_LogicalDisk).FreeSpace
sudo systemctl enable ssh [Math]::Round((Get-CimInstance -ClassName Win32_LogicalDisk).FreeSpace[0] / 1GB),1)
ssh-keygen -t rsa (Get-CimInstance -ClassName Win32_PhysicalMemory | Measure-Object -Property
Capacity -Sum).Sum / 1GbB
ssh-copy-id localhost (Get-CimInstance -ClassName Win32_NetworkAdapterConfiguration -Filter “IPEnabled =
‘True’”).IPAddress[0]
ssh-copy-id kali@ipaddress (Get-CimInstance -ClassName Win32_OperatingSystem) | Select-Object -Property *user*
ssh locahost\kali
join -1 3 -2 1 -t, accesstime.txt usernames.txt
File system table: awk '$2 == "Jones" {print $0}' awkusers.txt
/etc/fstab,fdisk
File system creation/repair: sed 's/10\.0\.4\.35/10.0.4.27/g' ips.txt s/<regular expression>/<replace with>/<flags>
mkfs,fsck
Disk analysis, creation: tail -n 1 somefile.txt
df,du,dd, df -h
Memory: free,vmstat,top tr '\\:' '/|' < infile.txt > outfile.txt
System info: uptime \n: newline , \r: return, \t: tab
Space: du -hs “$HOME” cut -d',' -f1 csvex.txt "Jane Smith"
Uname,hostname,ifconfig,ip,d $ cut -d',' -f1 csvex.txt | tr -d '"' Jane Smith
hclient
Traceroute,netstat,route cut -d',' -f1 csvex.txt | tr -d '"' | tail -n +2
Iptables,sftp sort -t ';' -k 2 tasks.txt > tasks_sorted.txt 2nd field -1 2 2nd field of first file
Id, su, useradd,passwd join -t ';' -1 2 -2 2 procowner_sorted.txt tasks_sorted.txt
stdin:0, stout:1, stderr:2 Jq -r ‘.authors[] | “\(.first_name) \ (.last_name)” ‘ book.json
Error message: command 2> find /home -name ‘*hello’ 2>/dev/null
/dev/null
arp -a : ARP table find /home -name ‘,*’ : hidden files
Uname -a : OS version find /home -size +5G
netstat -a : network conn find /home -mtime -1 : modified files <24 hrs
Mount : filesystems find /home -mtime +2 : modified files >2 days
ps -e : running processes find /path -type f -name ‘dog.png’
!! : to run last command nd grep -R -I ‘password’ /home
pipe
Grep -i -r /home -e ‘password’
read str , echo ${str} egrep
No of users: who | wc -l grep ‘T.o’ a.txt : 1 char
Groups: getent group | cut -d: - egrep ‘T.?o’ a.txt : 0/1 char
f3 | wc -l
ls -l /home | grep '^d' | awk egrep ‘T.*o’ a.txt : 0/ more char
'{print $3}' | wc -l OR getent
passwd | grep '^.*:/home' | wc -
l
Read choice “$choice” -eq 1< egrep ‘T.+o’ a.txt : atleast 1 char
[abc] Match only the character grep -c "pattern" filename (count)
a or b or c
[1-5] Match on digits in the egrep "^pattern" filename : lines that start with pattern
range 1 to 5
[a-zA-Z] Match any lowercase egrep "pattern$" filename
or uppercase a to z
[0-9 +-*/] Match on numbers grep -v "success" results.txt | wc -l : don’t contain
or these four mathematical
symbols
[0-9a-fA-F] Match a egrep "error|warning" config.cfg either error/ warning
hexadecimal digit
\s Whitespace egrep "[0-9]" notes.txt
\S Not whitespace netstat -an | grep "ESTABLISHED" : active netwrk conn
\d Digit grep "sshd" /var/log/auth.log : SSH login attempts
\D Not digit grep "session opened for user" /var/log/auth.log : loggeg in users
egrep '<([A-Za-z]*)>.*</\1>' grep "Failed password" /var/log/auth.log - failed login attempts
tags.txt
^[1-5] means that a matching egrep -o "([0-9]{1,3}\.){3}[0-9]{1,3}" /var/log/auth.log : lines with IP
string must start with one of
the
digits 1 through 5,
[1-5]$ means that a string grep "session opened for user john" /var/log/auth.log : login attempts
must
end with one of the digits 1
through 5.
handywork < data.in > getent group sudo | awk -F: '{print $4}' | tr ',' '\n' : users belong to sudo group
results.out
ls / | more egrep -o "([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}" /var/log/syslog : MAC add
grep "sshd" /var/log/auth.log | grep "port 22" | awk '{print $(NF-3)}' | sort | uniq : tried to
connect to port 22
You might also like
Centum VP Training PDF
PDF
80% (15)
Centum VP Training PDF
28 pages
All UNIX COMMANDS
PDF
100% (4)
All UNIX COMMANDS
658 pages
Fedora Terminal Commands
PDF
No ratings yet
Fedora Terminal Commands
17 pages
Linux - Red Team Guides PDF
PDF
100% (1)
Linux - Red Team Guides PDF
198 pages
Linux Cheat-Sheet
PDF
No ratings yet
Linux Cheat-Sheet
10 pages
Linux Command Line Cheat Sheet
PDF
No ratings yet
Linux Command Line Cheat Sheet
1 page
Linux SOP
PDF
No ratings yet
Linux SOP
4 pages
Linux Cheat Sheet
PDF
No ratings yet
Linux Cheat Sheet
1 page
Linux Cheat Sheet PDF
PDF
No ratings yet
Linux Cheat Sheet PDF
1 page
Command Line Cheatsheet
PDF
100% (1)
Command Line Cheatsheet
2 pages
Linux Commands
PDF
No ratings yet
Linux Commands
46 pages
Cool Unix CLI
PDF
100% (1)
Cool Unix CLI
464 pages
Linux Command Guide
PDF
No ratings yet
Linux Command Guide
82 pages
Agile Metrics What Are Agile Metrics?: Continuous Improvement
PDF
100% (1)
Agile Metrics What Are Agile Metrics?: Continuous Improvement
14 pages
Linux Commands Cheat Sheet
PDF
No ratings yet
Linux Commands Cheat Sheet
7 pages
Macromedia Director
PDF
No ratings yet
Macromedia Director
5 pages
CLF ALL
PDF
No ratings yet
CLF ALL
464 pages
LPE
PDF
No ratings yet
LPE
23 pages
RHCSA Course
PDF
No ratings yet
RHCSA Course
10 pages
Lab - Create User Accounts
PDF
No ratings yet
Lab - Create User Accounts
3 pages
Bash SSH
PDF
No ratings yet
Bash SSH
18 pages
Ebook Riversand PIM
PDF
No ratings yet
Ebook Riversand PIM
16 pages
Assignment No. 4: Elective Iii:Iot Lab
PDF
No ratings yet
Assignment No. 4: Elective Iii:Iot Lab
4 pages
Shell Docs
PDF
No ratings yet
Shell Docs
15 pages
Commands Used in Server
PDF
No ratings yet
Commands Used in Server
98 pages
UNIX Lab Programs BMS
PDF
No ratings yet
UNIX Lab Programs BMS
15 pages
HCS-8300 User's Software Manual (English)
PDF
No ratings yet
HCS-8300 User's Software Manual (English)
157 pages
Day 3 Part 3 History Notes
PDF
No ratings yet
Day 3 Part 3 History Notes
4 pages
Commandlinefu All
PDF
100% (1)
Commandlinefu All
481 pages
Unix-Linux Enumeration Cheat Sheet
PDF
No ratings yet
Unix-Linux Enumeration Cheat Sheet
3 pages
SAP Financial Accounting - Document Control
PDF
No ratings yet
SAP Financial Accounting - Document Control
21 pages
Linux Commands
PDF
No ratings yet
Linux Commands
5 pages
Threadsafe Man: Command Description
PDF
No ratings yet
Threadsafe Man: Command Description
14 pages
All Commands
PDF
No ratings yet
All Commands
3 pages
Final Hms 1
PDF
No ratings yet
Final Hms 1
29 pages
Hack Quizziz
PDF
No ratings yet
Hack Quizziz
4 pages
MFA Setup v4 For Staff and Faculty
PDF
No ratings yet
MFA Setup v4 For Staff and Faculty
18 pages
Computer Project (Repaired)
PDF
No ratings yet
Computer Project (Repaired)
78 pages
Linux Commands
PDF
No ratings yet
Linux Commands
9 pages
8 10 2023 Basic Linux CMD
PDF
No ratings yet
8 10 2023 Basic Linux CMD
9 pages
ER Diagram
PDF
No ratings yet
ER Diagram
49 pages
Commands For Unix/Linux Operating Systems and Their Syntax: Filesystem Informational Text Filtering / Mutative
PDF
No ratings yet
Commands For Unix/Linux Operating Systems and Their Syntax: Filesystem Informational Text Filtering / Mutative
1 page
Binary Addition
PDF
No ratings yet
Binary Addition
7 pages
Cheetsheet 2
PDF
No ratings yet
Cheetsheet 2
2 pages
Linux Cheat Sheet
PDF
100% (1)
Linux Cheat Sheet
1 page
Unix Linux Enumeration Cheat Sheet
PDF
No ratings yet
Unix Linux Enumeration Cheat Sheet
3 pages
Oracle PLSQL Best Practices
PDF
No ratings yet
Oracle PLSQL Best Practices
16 pages
Red Team Guides
PDF
No ratings yet
Red Team Guides
198 pages
Main - Linux Commands Cheat Sheet
PDF
No ratings yet
Main - Linux Commands Cheat Sheet
2 pages
Linux Cheat Sheet
PDF
100% (1)
Linux Cheat Sheet
1 page
2 Basic Linux
PDF
No ratings yet
2 Basic Linux
17 pages
Linux Cheat Sheet
PDF
No ratings yet
Linux Cheat Sheet
3 pages
Main - Linux Commands Cheat Sheet
PDF
No ratings yet
Main - Linux Commands Cheat Sheet
1 page
Code Optimization
PDF
No ratings yet
Code Optimization
36 pages
Leoffer Rate Card - 2024.docx-3-1
PDF
No ratings yet
Leoffer Rate Card - 2024.docx-3-1
23 pages
Some Importantes Commands Linux
PDF
No ratings yet
Some Importantes Commands Linux
4 pages
CSC 101 42786
PDF
No ratings yet
CSC 101 42786
3 pages
Cut & Paste More Linux Commands: Command Description
PDF
No ratings yet
Cut & Paste More Linux Commands: Command Description
30 pages
Daily Tasks of Dba
PDF
No ratings yet
Daily Tasks of Dba
6 pages
Threadsafe Man: Command Description
PDF
No ratings yet
Threadsafe Man: Command Description
7 pages
PM75 Spec Sheet ACS
PDF
No ratings yet
PM75 Spec Sheet ACS
2 pages
12 Smith and Nephew LENS Integrated Camera Processor and LED Light Source B
PDF
No ratings yet
12 Smith and Nephew LENS Integrated Camera Processor and LED Light Source B
2 pages
DLL 01-16-20-2023
PDF
No ratings yet
DLL 01-16-20-2023
5 pages
Threadsafe Man: Command Description
PDF
No ratings yet
Threadsafe Man: Command Description
12 pages
AAA LINUX Syntax and Notes
PDF
No ratings yet
AAA LINUX Syntax and Notes
39 pages
IOT With ESP8266 Node MCU PDF
PDF
No ratings yet
IOT With ESP8266 Node MCU PDF
4 pages
Computer Technology 2016 Prabidhan
PDF
No ratings yet
Computer Technology 2016 Prabidhan
7 pages
Linux Commands
PDF
No ratings yet
Linux Commands
36 pages
Interfacing ESRI GIS To SAP R/3: An ESRI White Paper - Summer 1999
PDF
No ratings yet
Interfacing ESRI GIS To SAP R/3: An ESRI White Paper - Summer 1999
14 pages
Useful Linux Commands 1. System
PDF
No ratings yet
Useful Linux Commands 1. System
2 pages
Commands
PDF
No ratings yet
Commands
12 pages
WUBR 170GN P4 Approval Sheet 1.1
PDF
No ratings yet
WUBR 170GN P4 Approval Sheet 1.1
14 pages
How To Transfer PuTTY Sessions To Another Windows Machine
PDF
No ratings yet
How To Transfer PuTTY Sessions To Another Windows Machine
8 pages
Linux Command by NischalTechSupport
PDF
No ratings yet
Linux Command by NischalTechSupport
4 pages
Linux Commands 1
PDF
No ratings yet
Linux Commands 1
8 pages
Linux Commands Sheet: Cheat
PDF
No ratings yet
Linux Commands Sheet: Cheat
4 pages
Resume Hassan Suhaib
PDF
No ratings yet
Resume Hassan Suhaib
1 page
ASKEY-TCG220-d: D3.0 8x4 Data Cable Modem
PDF
No ratings yet
ASKEY-TCG220-d: D3.0 8x4 Data Cable Modem
2 pages
Cli Wallpaper v2
PDF
No ratings yet
Cli Wallpaper v2
1 page
Linux Command Line Quick Ref
PDF
No ratings yet
Linux Command Line Quick Ref
7 pages
Linux CLI Cheat Sheet
PDF
No ratings yet
Linux CLI Cheat Sheet
6 pages
MagicQ Remote Ethernet
PDF
No ratings yet
MagicQ Remote Ethernet
8 pages