General Commands Flashcards
(50 cards)
cp
Copy file or directory
pwd
Print working directory
ls
list
ls -l
list with details
ls -a
list with hidden files
cd + return
back to user’s directory
cd
change directory
cd..
change directory, up one level
cd /
change directory, root level of startup disk
cd -
change directory, go back to the directory you were in before the last time you issued the cd command
mkdir
make directory
echo “txt”
creates file, use filename.extension
hostname
my computer’s network name
rmdir
remove directory
pushd
push directory, store current directory then go to specified directory
popd
go back to pushd directory
mv
move a file or directory, also renames
cp -r
copy directory
less
page through a file, spacebar, w, q
cat
print the whole file
xargs
execute arguments
find
find file
grep
find things inside files
man
read a manual page