Sunday, February 27, 2022

Linux Commands

 

  FILE COMMANDS

                               
                          
nano - command line text editor  
tee - writes to standard output file w/o opening   
echo - used to read/write strings to files
grep - filters strings within a file within a directory
whereis - locates binary files
which - find path variable for binary

find - '/ -type f -name apache' - will look through '/root' directory for files with apache in the name

wildcard - 'find /etc -type f --name apache2.*' will search for any file name with apache2 with any extension preceding within '/etc' folder

cat >> - will append a 'string' to an already existing file

touch - displays file modification date & can also create files

head & tail - view first 10 (optional) or last 10 (optional) lines of text from a file

nl - will display a file with number lines 

sed - 'stream editor' and will replace a string in a file with a new string mysql -> MySQL globally or specifically

less - find specific string within file

ln - creates a hardlink to a file

diff - difference of strings between two files

HTML Smuggling for Data Infiltration