CyberSquare - Reference Sheet

Reference Sheet





Bash

sudo pacman -Syu Updates the computer
sudo pacman -Syyu Use to update the computer if there is a bug/corruption on local datafiles or if you messed up the datafiles
tab Gives a list of all current commands
cd [folderName] Opens a new directory to a folder and keeps the terminal in that folder
findstr [yourWord] [fileName].txt Searches the text file for a specific word
ls Lists the contents of a folder/directory
ssh [username].net -p [port] Used to login to a remote machine, useful for CyLab
nc [username].net [port] Used to scan ports and listen in on connections
chmod +x [fileName] Makes a file executable
./[fileName] Runs the given executable file
strings [fileName] Lists all the strings in a file
strings [fileName] | grep [word] Lists only that specific word from all strings in the file
cat [fileName] Prints the content of a file
Mkdir Creates a new directory (folder)
grep -r [word] Searches current and all subdirectories for words with the given parameter
nano [codeFile] Allows for quick modifications to code
Wget [linkToFile] Downloads the file at the specified link
cd ~ Sends the directory to the home
rm [fileName] Deletes the specified file
rm -r [directoryName] Deletes the specified file
unzip [fileName.zip] Unzips a zip file
gzip -d [fileName] Decompresses HTTP contents
mv Moves files from one directory to another




Address Bar

/.htaccess views the apache server
/.DS_Store Accesses a hidden macOS file
/robot.txt Added at the end of a webpage URL. Acts as the code of conduct for bots like web crawlers. These text files ensure that these bots dont overflow the traffic of the website and prohibits the bots access to web pages that arent for the public. This also restricts the abilities of AI web crawlers that may have a more taxing demand on a website
localhost A case sensitive with spelling but quick way to view what is currently being hosted locally. Does not work trying to reach the service on another device