Command Lines Flashcards
print working directory
pwd
my computer’s network name
hostname
Make directory
mkdir
change directory
cd
list directory
ls
remove directory
rmdir
push directory
pushd
pop directory
popd
copy a file or directory
cp
move a file or directory
mv
page through a file
less
print the whole file
cat
execute argument
xargs
find files
find
find things inside files
grep
read a manual page
man
find what man page is appropriate
apropos
look at your environment
env
print some arguments
you can use this command to write and overwrite data to a file using command line in terminal
echo
echo “hello you” test.txt
this will overwrite any existing data in file test.txt with text hello you.
export/ set a new environment variable
export
exit the shell
exit