Last active
July 14, 2020 14:44
-
-
Save EmmanuellaAlbuquerque/4323a4a2118910de0e2a533f99de60d6 to your computer and use it in GitHub Desktop.
Command Line Notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# return your user name | |
whoami | |
# change directory | |
cd Desktop | |
# return directory | |
cd .. | |
# list | |
ls | |
# print working directory | |
pwd | |
# pgUp pgDown | |
# tab | |
# create a new directory | |
mkdir practice | |
# remove file | |
rm practice | |
# remove directory -r(repository) | |
rm -r practice | |
# copy files and directories | |
cp arquivo.csv /home/username/Desktop/arquivo.csv | |
# move files and directories | |
mv notes.sh /home/username/Desktop | |
# to view a single file | |
cat notes.sh | |
# -n: with lines | |
cat -n notes.sh | |
# open notes on textEditor gedit | |
gedit notes.sh | |
# create a file | |
cat >notes.txt | |
# dataset: directory | |
file dataset | |
# same as ctrl + L | |
clear | |
# help for cd | |
man cd | |
exit | |
# --- run the .sh file shell script --- | |
# set execute permission on your script | |
chmod +x filename.sh | |
# to run your script | |
./filename.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment