Command Lines Flashcards
pwd
print work directory
mkdir
make directory
ls
list directory
cd
change directory
rmdir
remove directory
print working directory
pwd
my computer’s network name
hostname
Make directory
mkdir
change directory
cd
list directory
ls
remove directory
rmdir
pushd
push directory
push directory
pushd
popd
pop directory
pop directory
popd
cp
copy a file or directory
copy a file or directory
cp
mv
move a file or directory
move a file or directory
mv
less
page through a file
page through a file
less
cat
print the whole file
print the whole file
cat
xargs
execute argument
execute argument
xargs
find
find files
find files
find
grep
find things inside files
find things inside files
grep
man
read a manual page
read a manual page
man
apropos
find what man page is appropriately
find what man page is appropriate
apropos
env
look at your environment
look at your environment
env
echo
print some arguments
you can use echo command to write and overwrite data to a file using command line in terminal
echo “hello you” test.txt
this will overwrite any existing data in file test.txt with text hello you.
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
export/ set a new environment variable
export/ set a new environment variable
export
exit
exit the shell
exit the shell
exit
sudo
DANGER! become super user root DANGER!
chown
change file owner and group
chmod
Change access permissions of files
hostname
my computer’s network name