Common Command Line Flashcards
(27 cards)
pwd
print working directory = brings you back to where you were
cd
change directory = adds to the directory
mkdir
make directory =allows you to make a directory
pwd
cd (blank)
adds to directory
cd ..
brings you up directory;
Use cd ../../../ etc to come up multiple directories
ls
lists what’s in the directory
rmdir
remove directory: keep in mind that you have to use cd .. to go back before removing the directory in front of it
mkdir -p
makes a directory all in one path instead of making them one at a time
pushd
push directory
new-item
add new item under a directory
cp
copy a file
How do you make files within a directory?
You can create a file with a directory by using the mkdir command
cp -r
copies entire directories into a new place:
- cp -r copy entire place
- cp -r filename newplace
- ls newplace
mv
use this command to move files and directories
more
page through a file
type
print the whole file
forfiles
run a command on lots of files
dir-r
find files
select-string
find things inside a file
help
read a manual page
helpctr
find what man page is appropriate
echo
print some arguments
set
export/set a new environment variable
exit
exit the shell