Linux Cheat Sheet
Personal collection of Linux commands and references.
Creating Virtual Environments
Ubuntu
or After executing the above command, the following files and directories are created:pyvenv.cfg
: Configuration file containing information about the virtual environment.bin/
(orScripts/
on Windows): Directory containing copies/symlinks of Python binaries.lib/pythonX.Y/site-packages/
(orLib/site-packages/
on Windows): Initially empty directory for installing packages.
If an existing directory is specified, the command reuses it for the virtual environment.
Kali Linux
Essentially the same process but slightly different commands.
To install the virtual environment:
To activate, navigate to desired directory: To deactivate, simply typedeactivate
.
Folder and File Permissions
To make file an executable, use: