Designed to be used for advanced users
Designed to be used for EVERYONE
Your OS
Choose 1 of many pre-made instructions
Your OS
Describe specific instruction you want
Username
System Name
Current Location In a file system
Your command
= folder Directory
= beginning ofcommand
= comment
= command
= flag
= Current Directory
= Directory one level up
= Directory two level up
= User Home Directory (/home/atsushi)
= System Home Directory
print working directory
$ pwd
list files / dirs
$ ls
$ ls -1 # Show 1 per line
# Long format list
# (permissions, ownership, size and modification date)
# of all files:
$ ls -la
change directory
$ cd ~
$ cd ~/Downloads
manual
$ man man
$ man pwd
$ man ls
also check out https://tldr.sh
make directory
$ mkdir ex_dir # Same as ./ex_dir
$ mkdir ../ex_dir
# Create dir recursively
$ mkdir -p ex_dir/dir1
remove directory
$ rmdir ex_dir # Same as ./ex_dir
$ rmdir ../ex_dir
# Create dir recursively
$ rmdir -p ex_dir/dir1
create new file
$ touch ye.txt # Same as ./ye.txt
# Set the times on a file to a specific date and time:
# touch -t YYYYMMDDHHMM.SS filename
$ touch -t 201801010930.55 ye.txt
$ echo "Hello World"
# Print the variable $HOSTNAME
$ echo $HOSTNAME
# sidenote: define varibale with export
$ export TEST_BOI=10
print the text to the output file
Pass the output of one command to another for further processing
print "yes" and then "no"
move file
# Move ye.txt one level up
$ mv ye.txt ../
# Rename file
$ mv ye.txt kanye.txt
# Vervose move (print result)
$ mv -v kanye.txt ~
do something in super user privilage
# Create file & set high privilate
$ touch ye.txt && chmod 000 ye.txt
# Try to print the content of the file
$ cat ye.txt # ERROR
# Print file with super user privilage
$ sudo cat ye.txt
open file / dir in your
# "code" is for Visual Studio Code
# Open 1 file
$ code ye.txt
# Open a whole directory
$ code .
# Open a whole directory in atom
$ atom .
https://code.ubyssey.ca/resources