(Davy lessons)
ls
list
- flag affects how program acts
-la long all
ls -la show all files in current directory
/ root
cd / root
cd .. back to directory
cd change drive
pwd print working directory
sudo super user
cat output (text inside .txt)
nano text editor
"script"
ifconfig
output | function
| = pipe
test.sh
program
echo "done"
(done = indicates executed)
PERMISSIONS
7 - 7 - 7
Readable, Writeable, Executable
You, Group, Everyone
sudo chmod 777 file name
Execute file name
Grep blah fines line w/ specific text (ex: blah)
ls -la blah* lists anything with line blah
Create
sudo nano blah.txt
sudo nano blah.sh
test.sh
Delete rm
Open application blah.app
Comments