CLI Flashcards
pwd
print working directory
hostname
my computer’s network name
mkdir
make directory
cd
change directory
ls
list directory
rmdir
remove directory
pushd
push directory
popd
pop directory
cp
copy a file or directory
mv
move a file or directory
less - mac
more - pc
page through a file
cat - mac
type - pc
print the whole file
xargs
execute arguments
find - mac
dir -r - pc
find files
grep - mac
select-string- pc
find things inside files
man - mac
help - pc
read a manual page
apropos - mac
helpctr - pc
find what man page is appropriate
env
look at your environment
echo
print some arguments
export - mac
set - pc
export/set a new environment variable
exit
exit the shell
sudo - mac
runas - pc
DANGER! become super user root DANGER!
robocopy
robust copy
forfiles
run a command on lots of files
touch - mac
new-item - pc
Make empty file
3 core cmdlets?
help - get-help
gcm - get-command
gm - get-member
Git remove remote branch
git push origin -d [branch-name]
Git get commits with hashes
git log
Git unstage and uncommit all changes
git reset [hash]
Git completely remove all changes
git reset –hard [hash]
Create new react project with Vite
npm create vite@latest my-first-react-app – –template react
Initialize node project
npm init-y