Linux command
Linux command
- SSH
To create secure connections between two host
-whoami
Let me knkw who is the users logged in my kali
- su :
We use it to switch between users ,
Syntax : su - userName
If we type just (su - ) it will become root user
That will make kali think I am a root user
- touch
It is the best way to create " files " not folder
Syntax : touch FileName.txt.
to create more than file uou can type FileName{1..10}
To create file from the specific date : touch -d FileName.txt
-shred:
If you don't anyone to see what inside the app
-cp :
Vopy anyfile
Cp soecife the file directory
- xdg-open :
It will help you by opening files in graphics interface
xdg-open FileName , ' URL '
- tldr
Perfect tool will help you from lising in bug amount of man command information
- open
This command let you open file and directory and applications
Syntax:
open FileName , open DirectoryName , open applicationNane
- find
You can find directories and files
Use -type d to find directory, type f type l
Use -or to reach about a OR b
Syntax :
find SearchPath1 SearchPath2 -name fileFolderName
ps :
Represent for process status
id :
Tell you your id
Hostname:
Your host
Uname:
ifconfig , ip :
Stuff about network
netstat :
Your network state
Lsblk :
List harddriver
Lsusb:
Lsof :
List all of open files
Usermod
Visudo :
It will show the file sudoers
-Alias :
It will allow you to create your own commands
Alias TheCommandName=" ls -al "
-ps :
It wikl show you the tasks that run , if you want to finish any task type kill +
taskkId
-aux will show you all your tasks
-df :
It will show the desk spaace usage
---
---
There is two main package mangaer in linux
1-dpkg : d package manager it is low level package manger and have
a lot of flaws ,
-i for install
2-apt: (Advanced package manager tool )it is powerful, it can download anything on
Debian based linux destruction , how it work ??
Apt depend on a repository it is a storage location that have all thr software that
may gonna use , and to see what the repository we use ,
Sudo apt edit-source: to see my repositories // pool/main
3- aptitude:
**NOTE**:
.deb the file extension for package and linux specified Debian based and for
undebian based maybe it centos opensuse
There is to more package manager , like pip watch network chuc to see details , or
from hack box website
__________________________________________________________________
New Episode
Linux services (demons )
php -S 127.0.0.1:8080
npx http-server -p 8080
__________________________________________________________________
__________________________________________________________________
PATHS