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)
38 views
Cheetsheet 2
Uploaded by
muskanh215
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 now
Download
Save Cheetsheet 2 For Later
Download
Save
Save Cheetsheet 2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
38 views
Cheetsheet 2
Uploaded by
muskanh215
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 now
Download
Save Cheetsheet 2 For Later
Carousel Previous
Carousel Next
Save
Save Cheetsheet 2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
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: /etc/fstab,fdisk awk '$2 == "Jones" {print $0}' awkusers.txt
File system creation/repair: sed 's/10\.0\.4\.35/10.0.4.27/g' ips.txt s/<regular expression>/<replace
mkfs,fsck with>/<flags>
Disk analysis, creation: df,du,dd, df - tail -n 1 somefile.txt
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,dhclient $ cut -d',' -f1 csvex.txt | tr -d '"' Jane Smith
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 pipe grep -R -I ‘password’ /home
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: -f3 | wc egrep ‘T.?o’ a.txt : 0/1 char
-l
ls -l /home | grep '^d' | awk '{print egrep ‘T.*o’ a.txt : 0/ more char
$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 a or b grep -c "pattern" filename (count)
or c
[1-5] Match on digits in the range 1 egrep "^pattern" filename : lines that start with pattern
to 5
[a-zA-Z] Match any lowercase or egrep "pattern$" filename
uppercase a to z
[0-9 +-*/] Match on numbers or grep -v "success" results.txt | wc -l : don’t contain
these four mathematical symbols
[0-9a-fA-F] Match a hexadecimal egrep "error|warning" config.cfg either error/ warning
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>' tags.txt grep "Failed password" /var/log/auth.log - failed login attempts
^[1-5] means that a matching string egrep -o "([0-9]{1,3}\.){3}[0-9]{1,3}" /var/log/auth.log : lines with IP
must start with one of the
digits 1 through 5,
[1-5]$ means that a string must grep "session opened for user john" /var/log/auth.log : login attempts
end with one of the digits 1 through
5.
handywork < data.in > results.out getent group sudo | awk -F: '{print $4}' | tr ',' '\n' : users belong to sudo group
ls / | more egrep -o "([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}" /var/log/syslog : MAC add
num_users=$(cat /etc/passwd | wc grep "sshd" /var/log/auth.log | grep "port 22" | awk '{print $(NF-3)}' | sort | uniq : tried to
-1) connect to port 22
num_nologin=$(grep -c "nologin" uptime_info=$(uptime -p)
/etc/passwd)
num sudo=$(grep -c "sudo" num log_files=$(find /var/log -type f-name "*10g*" 2>/dev/null
/etc/group)
os_info=$(uname -al) num_processes=$(ps -ax | wc -1)
You might also like
EWUpdate 1
PDF
50% (2)
EWUpdate 1
28 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 Commands Cheat Sheet
PDF
No ratings yet
Linux Commands Cheat Sheet
7 pages
Linux Cheat Sheet
PDF
100% (1)
Linux Cheat Sheet
1 page
Chee T Sheet
PDF
No ratings yet
Chee T Sheet
2 pages
Commands Used in Server
PDF
No ratings yet
Commands Used in Server
98 pages
Unix Linux Enumeration Cheat Sheet
PDF
No ratings yet
Unix Linux Enumeration Cheat Sheet
3 pages
Linux Commands
PDF
No ratings yet
Linux Commands
5 pages
UNIX Lab Programs BMS
PDF
No ratings yet
UNIX Lab Programs BMS
15 pages
Red Team Guides
PDF
No ratings yet
Red Team Guides
198 pages
Linux CLI Cheat Sheet
PDF
No ratings yet
Linux CLI Cheat Sheet
6 pages
Linux Commands
PDF
No ratings yet
Linux Commands
36 pages
Shell Docs
PDF
No ratings yet
Shell Docs
15 pages
2 Basic Linux
PDF
No ratings yet
2 Basic Linux
17 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
Day 3 Part 3 History Notes
PDF
No ratings yet
Day 3 Part 3 History Notes
4 pages
main_linux-commands-cheat-sheet (1)
PDF
No ratings yet
main_linux-commands-cheat-sheet (1)
2 pages
AAA LINUX Syntax and Notes
PDF
No ratings yet
AAA LINUX Syntax and Notes
39 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
12 pages
Linux Command by NischalTechSupport
PDF
No ratings yet
Linux Command by NischalTechSupport
4 pages
Linux Commands Sheet: Cheat
PDF
No ratings yet
Linux Commands Sheet: Cheat
4 pages
Linux Cheat-Sheet
PDF
No ratings yet
Linux Cheat-Sheet
10 pages
Linux Cheat Sheet
PDF
100% (1)
Linux Cheat Sheet
1 page
Command Line Cheatsheet
PDF
100% (1)
Command Line Cheatsheet
2 pages
CyberAces Module3-Bash 5 PracticalUses
PDF
No ratings yet
CyberAces Module3-Bash 5 PracticalUses
16 pages
LPE
PDF
No ratings yet
LPE
23 pages
Bash HW
PDF
No ratings yet
Bash HW
3 pages
Threadsafe Man: Command Description
PDF
No ratings yet
Threadsafe Man: Command Description
7 pages
Linux Command Guide
PDF
No ratings yet
Linux Command Guide
82 pages
Linux Command Line Quick Ref
PDF
No ratings yet
Linux Command Line Quick Ref
7 pages
main_devops-engineer-linux-commands-cheat-sheet (1)
PDF
No ratings yet
main_devops-engineer-linux-commands-cheat-sheet (1)
4 pages
Linux Commands
PDF
No ratings yet
Linux Commands
9 pages
?Kali Linux Basics_ Cheat Sheet for Beginners
PDF
No ratings yet
?Kali Linux Basics_ Cheat Sheet for Beginners
6 pages
Useful Linux Commands 1. System
PDF
No ratings yet
Useful Linux Commands 1. System
2 pages
Linux Commands To Know by Devops Engineer
PDF
No ratings yet
Linux Commands To Know by Devops Engineer
4 pages
Find
PDF
No ratings yet
Find
6 pages
Linux-Cheat-Sheet 2
PDF
No ratings yet
Linux-Cheat-Sheet 2
7 pages
Cut & Paste More Linux Commands: Command Description
PDF
No ratings yet
Cut & Paste More Linux Commands: Command Description
30 pages
Linux
PDF
No ratings yet
Linux
3 pages
Linux CLI Cheat-Sheet
PDF
No ratings yet
Linux CLI Cheat-Sheet
6 pages
Threadsafe Man: Command Description
PDF
No ratings yet
Threadsafe Man: Command Description
14 pages
Script
PDF
No ratings yet
Script
11 pages
Linux Cheat Sheet PDF
PDF
No ratings yet
Linux Cheat Sheet PDF
1 page
Linux Commands To Know by Devops Engineer Cheat Sheet
PDF
No ratings yet
Linux Commands To Know by Devops Engineer Cheat Sheet
4 pages
Commands
PDF
No ratings yet
Commands
12 pages
Linux_Cheat_Sheet
PDF
No ratings yet
Linux_Cheat_Sheet
3 pages
all_commands
PDF
No ratings yet
all_commands
3 pages
Filters & Redirection.docx
PDF
No ratings yet
Filters & Redirection.docx
6 pages
Linux Commands 1
PDF
No ratings yet
Linux Commands 1
8 pages
Linux Commands-2
PDF
No ratings yet
Linux Commands-2
17 pages
Linux Commands Cheat Sheet - Merged
PDF
No ratings yet
Linux Commands Cheat Sheet - Merged
2 pages
LINUX
PDF
No ratings yet
LINUX
4 pages
Bash Command Line Pro Tips
From Everand
Bash Command Line Pro Tips
Jason Cannon
4.5/5 (8)
Computer Engineering Laboratory Solution Primer
From Everand
Computer Engineering Laboratory Solution Primer
Karan Bhandari
No ratings yet
Configuration of a Simple Samba File Server, Quota and Schedule Backup
From Everand
Configuration of a Simple Samba File Server, Quota and Schedule Backup
Dr. Hidaia Mahmood Alassouli
No ratings yet
Rust Package 100 Knocks: One-Hour Mastery Series 2024 Edition
From Everand
Rust Package 100 Knocks: One-Hour Mastery Series 2024 Edition
Kanto
No ratings yet
Lisp Programming Language
From Everand
Lisp Programming Language
Faiz ul haque Zeya
No ratings yet
Inspiring Powershell Articles
From Everand
Inspiring Powershell Articles
Murat Yildirimoglu
No ratings yet
Footprinting, Reconnaissance, Scanning and Enumeration Techniques of Computer Networks
From Everand
Footprinting, Reconnaissance, Scanning and Enumeration Techniques of Computer Networks
Dr. Hidaia Mahmood Alassouli
No ratings yet
1 s2.0 S1877050922015058 Main
PDF
No ratings yet
1 s2.0 S1877050922015058 Main
11 pages
Cs1404: Internet Programming Lab: List of Experiments
PDF
75% (4)
Cs1404: Internet Programming Lab: List of Experiments
60 pages
SEAGATE Yachts and Marina Dubai Grundriss Gebaeude 1
PDF
No ratings yet
SEAGATE Yachts and Marina Dubai Grundriss Gebaeude 1
38 pages
38 Souls
PDF
No ratings yet
38 Souls
42 pages
MORANO
PDF
No ratings yet
MORANO
8 pages
Truma Watersystems Boiler Bg10 Bge10 Operating en
PDF
No ratings yet
Truma Watersystems Boiler Bg10 Bge10 Operating en
10 pages
Ration Card Form
PDF
No ratings yet
Ration Card Form
68 pages
rajkumar rao
PDF
No ratings yet
rajkumar rao
17 pages
SE Applicants CY-2023 Due For PFT - 0
PDF
No ratings yet
SE Applicants CY-2023 Due For PFT - 0
48 pages
Legal Notice 505861 SL5276975335
PDF
No ratings yet
Legal Notice 505861 SL5276975335
2 pages
2023 - Things That (Should) Make You Go HMM
PDF
No ratings yet
2023 - Things That (Should) Make You Go HMM
19 pages
Grill Details
PDF
No ratings yet
Grill Details
1 page
Chapter 4 (Overview of Corporate Governance)
PDF
No ratings yet
Chapter 4 (Overview of Corporate Governance)
11 pages
Business Today - March 30 2025
PDF
No ratings yet
Business Today - March 30 2025
182 pages
Chapter 7 - Hybrid Cars - Introduction To Automotive Engineering
PDF
No ratings yet
Chapter 7 - Hybrid Cars - Introduction To Automotive Engineering
2 pages
Jubbal Empire
PDF
No ratings yet
Jubbal Empire
23 pages
Vegan Dog Food
PDF
No ratings yet
Vegan Dog Food
19 pages
ADMIT CARD NQT
PDF
No ratings yet
ADMIT CARD NQT
1 page
IDENTITY INTIMACY and DOMICILE - Notes On The Phenomenology of Home
PDF
No ratings yet
IDENTITY INTIMACY and DOMICILE - Notes On The Phenomenology of Home
15 pages
W2-01 Geodesy in Japan - Legends and Highlights
PDF
No ratings yet
W2-01 Geodesy in Japan - Legends and Highlights
9 pages
Deep Galerkin Method-2017
PDF
No ratings yet
Deep Galerkin Method-2017
31 pages
Pedagogical Commentary and Teaching Through Pandemic
PDF
No ratings yet
Pedagogical Commentary and Teaching Through Pandemic
1 page
Financial Planning and Analytics Cheatsheet
PDF
No ratings yet
Financial Planning and Analytics Cheatsheet
1 page
Open Electives Compressed
PDF
No ratings yet
Open Electives Compressed
373 pages
Congenital Myasthenic Syndromes Recent Advances.6
PDF
No ratings yet
Congenital Myasthenic Syndromes Recent Advances.6
7 pages
Answers:: Linkedin Used
PDF
No ratings yet
Answers:: Linkedin Used
2 pages
Menghilangkan Warna Dan Zat Organik Air Gambut Dengan Metode Koagulasi-Flokulasi Suasana Basa
PDF
No ratings yet
Menghilangkan Warna Dan Zat Organik Air Gambut Dengan Metode Koagulasi-Flokulasi Suasana Basa
14 pages
2013-2017 B.E B.tech
PDF
No ratings yet
2013-2017 B.E B.tech
1 page
Mil STD 461
PDF
No ratings yet
Mil STD 461
150 pages