Commands Flashcards
cd
change directory
pwd
print working directory (show where you are)
ls
list all files and directories in the working directory
mkdir
create a new directory in the working directory
touch
create a new file in the working directory
ls -a
lists all contents of the directory, including hidden files and directories
ls -l
lists all contents in long format
ls -t
lists all contents by the time they were last modified
ls -alt
multiple options used together, showing all hidden files and directories in long format, listed by time they were last modified
cp
copies files
mv
moves and renames files
rm
removes files
rm -r
removes directories (recursive)
>
redirects stdout of a command to a file, overwriting previous content
> >
redirects stdout of a command to a file, appending to previous content