Skip to main content

Terminal emulator Codes

Terminal emulation is the ability to make a given computer appear like an actual terminal or client computer networked to a server or mainframe. Today, this is often done via software to access data or programs on the server or mainframe, which are usually only available to the terminal being emulated. You can even Access your Android's built-in Linux command line shell using terminal emulator for Android from google play store. And Unleash your inner geek!

# or $ any one will be used for representing

$ su :- Root Access

# cd /system :- Change directory From current directory to '/system':

# cd app :- From current directory (assume '/system') to one down with the name 'app' (now in '/system/app')

# cd .. :- From current directory, one up (back to '/system')

# ls :- List all files

# ls /system/app :- List all files in '/system/app'

# ls *Time* :- List all files with the word 'Time' in it (case sensitive)

# mount :- Mount Get mount info

# mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system :- Mount '/system' as read-write

# mount -o ro,remount -t yaffs2 /dev/block/mtdblock0 /system :- Mount '/system' as read-only

# busybox mv a b :- Move, Copy and Remove , Move file from a to b

# busybox cp a b :- Copy file from a to b

# busybox rm a :- Remove file a

# reboot :- Reboot

# bmgr :- BlueTooth daemon

# uptime :- Prints how long your device has been running since it was last booted

# strace :- Used to administer SQLite databases.

# mkdir :- make directories 
Usage: mkdir [OPTION] DIRECTORY… 
eg. mkdir lhn

# vim :- Vi Improved, a programmers text editor
Usage: vim [OPTION] [file]…
eg. vim lhn.txt

# cp :- copy files and directories
Usage: cp [OPTION]… SOURCE DEST
eg. cp sample.txt sample_copy.txt 
cp sample_copy.txt target_dir

# mv :- move (rename) files
Usage: mv [OPTION]… SOURCE DEST
eg. mv source.txt target_dir
mv old.txt new.txt

# rm :- remove files or directories
Usage: rm [OPTION]… FILE…
eg. rm file1.txt , rm ­rf some_dir

# find :- search for files in a directory hierarchy
Usage: find [OPTION] [path] [pattern]
eg. find file1.txt, find ­name file1.txt

# history :- prints recently used commands
Usage: history

# cat :- concatenate files and print on the standard output
Usage: cat [OPTION] [FILE]…
eg. cat file1.txt file2.txt
cat ­n file1.txt

# grep :- 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.txt

# sort :- sort lines of text files
Usage: sort [OPTION]… [FILE]…
eg. sort file1.txt
sort ­r file1.txt

# tar :- to archive a file
Usage: tar [OPTION] DEST SOURCE
eg. tar ­cvf /home/archive.tar /home/original
tar ­xvf /home/archive.tar

# kill :- to kill a process(using signal mechanism)
Usage: kill [OPTION] pid
eg. kill ­9 2275

# ps :- report a snapshot of the current processes
Usage: ps [OPTION]
eg. ps,  ps ­el

# who :- show who is logged on
Usage: who [OPTION]
eg. who , who ­b , who ­q

# passwd :- 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, su

# chown :- change file owner and group
Usage: chown [OPTION]… OWNER[:[GROUP]] FILE…
eg. chown remo myfile.txt

# chmod :- change file access permissions
Usage: chmod [OPTION] [MODE] [FILE]
eg. chmod 744 calculate.sh

# zip :- package and compress (archive) files
Usage: zip [OPTION] DEST SOURSE
eg. zip original.zip original

# unzip :- list, test and extract compressed files in a ZIP archive
Usage: unzip filename
eg. unzip original.zi

# ssh :- 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.20

# scp :- 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 ­l

# umount :- unmount file systems
Usage: umount [OPTIONS] dir | device…
eg.  umount /media/target

# du :- estimate file space usage
Usage:  du [OPTION]… [FILE]…
eg. du

# df :- report filesystem disk space usage
Usage: df [OPTION]… [FILE]…
eg. df

# quota :- display disk usage and limits
Usage: quota [OPTION]
eg. quota ­v

# poweroff :- power off the system
Usage: poweroff [OPTION]
eg. poweroff

# kate :- KDE Advanced Text Editor
Usage:  kate [options][file(s)]
eg. kate file1.txt file2.txt

# vim :- Vi Improved, a programmers text editor
Usage: vim [OPTION] [file]…
eg. vi hello.c

# gedit :- A text Editor. Used to create and edit files.
Usage: gedit [OPTION] [FILE]…
eg. gedit

# bg :- 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: jobs

# sed :- stream editor for filtering and transforming text
Usage: sed [OPTION] [input­file]…
eg. sed ‘s/love/hate/g’ loveletter.txt

# awk :- pattern scanning and processing language
eg.  awk ­F: ‘{ print $1 }’ sample_awk.txt

# find :- search for files in a directory hierarchy
Usage: find [OPTION] [path] [pattern]
eg. find ­name file1.txt

# locate :- find or locate a file
Usage: locate [OPTION]… FILE…

eg. locate file1.txt

Comments

Popular posts from this blog

Google Dorks list

Google Dorks are used for searching websites in google search engine or in CLI. It can also help you in hacking as it shows the specific results which contains your search strings. Some of the Google Dorks are given below I tried to include all of them and sorry if any duplicacy. You can download or view this from  here about.php?cartID= accinfo.php?cartId= acclogin.php?cartID= add.php?bookid= add_cart.php?num= addcart.php? addItem.php add-to-cart.php?ID= addToCart.php?idProduct= addtomylist.php?ProdId= adminEditProductFields.php?intProdID= advSearch_h.php?idCategory= affiliate.php?ID= affiliate-agreement.cfm?storeid= affiliates.php?id= ancillary.php?ID= archive.php?id= article.php?id= phpx?PageID basket.php?id= Book.php?bookID= book_list.php?bookid= book_view.php?bookid= BookDetails.php?ID= browse.php?catid= browse_item_details.php Browse_Item_Details.php?Store_Id= buy.php? buy.php?bookid= bycategory.php?id= cardinfo.php?card= cart.php?action= ...

Hack SQL vulnerable websites with sqlmap

As the web is expanding day by day same way the hackers are also gaining new ways to access the data of your or any random website all you need to do is few lines of code and you are all done. Today i will tell you most common way to hack a website without any restrictions all you need is a vulnerable site and you are all done. NOTE: This is for educational purpose only. I am not responsible for anything. Try at your own risk. SQLMAP is availabe in linux and mac OS. If not you can install it via apt and other possible ways. syntax > sqlmap / [ ,options/ ] First of all make your device ready for hacking that is by installing necessary software's and files like Tor , Orbot  (Android),  Orfox (Android) or any other tor supported browser. And don't use it for your personal works. And if possible use VM's for hacking to make it more anonymous. Run tor or orbot and connect via VPN to be anonymous (i.e to hide and secure yourself). then you can open terminal on...

Python Code for Trading Indicators

Hi Everyone, I am back with some random things again. So today i will share codes of popular trading indicators which you can use while creating your own trader with machine learning in python. so at first you need to import the below libraries import numpy as np import pandas as pd from pandas_datareader import data as web import matplotlib.pyplot as plt then after the above step is done then you need to assign few of the local variables you can also take them as input as per your requirement stock_name="SBI" #for nifty: ^NSEI n = 20 #window size start_date = "2021-04-01" end_date = "2021-06-03" then after it is done you need to create a function which can be used to extract the data from the yahoo finance and for that the code is provided below def getData():     stock_data = web.DataReader(stock_name, start=start_date, end=end_date, data_source='yahoo')     stock_df=pd.DataFrame(stock_data)     return stock_df The above code will return da...