Skip to content

Instantly share code, notes, and snippets.

@ramkumarrammohan
Last active February 6, 2024 11:54
Show Gist options
  • Save ramkumarrammohan/51004c554aa176077eaa7cf857ddfaab to your computer and use it in GitHub Desktop.
Save ramkumarrammohan/51004c554aa176077eaa7cf857ddfaab to your computer and use it in GitHub Desktop.
Here are the commands which may useful in daily activities which can improve the productivity
# Read log files and create a new file with limited(filtered) logs
cat <filename> | grep <keyword> > newfile_name
# find the target device in my network
sudo arp-scan --localnet | grep "MSC VERTRIEBS GMBH"
# clean the user defined shared memory
ipcs -ma | awk '/root/ { print $2 }' | xargs -n 1 ipcrm -m
# screenshot from target device
cat /dev/fb0 > screen.raw && ./iraw2png 1280 720 <screen.raw> screen.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment