at Code Fellows 102 class session
THE MOST POPULAR TEXT EDITORS FOR CODING:
Ctrl+Shift+P - look up addition information;Alt+B - open in browser;Ctrl+/ - comment/uncomment;COMMAND LINE/TERMINAL/SHELL
A command line, or terminal, is a text based interface to the system. You are able to enter commands by typing them on the keyboard and feedback will be given to you similarly as text. The command line typically presents you with a prompt. Then you can enter a command (ls, pwd, cd etc). The command can be followed by arguments separated by spaces (eg -l /home/ryan ). The first command line argument ( -l ) is also referred to as an option. Options are typically used to modify the behaviour of the command. Options are usually listed before other arguments and typically start with a dash ( - ). Linux is case sensitive!
COMMAND LIST:
pwd (Print Working Directory) - tells you whar directorey you’re at;ls (List) - lists what is in the current location;
OPTIONS:
-l - long listing
/etc - lists not the curren directory but instead that directories contents;-a - lists hidden files;cd (Change Directory) - changes your current location (cd Documents, cd ~/Documents, cd /);
cd $wr - brings to Windows FS root foldel;cdwr - in our particular /.profile (this file stores terminal’s profile settings) brings to Windows FS root;cd ~ - brings to Linux FS root;cd /mnt - go to drives list;code - open VS Code (or whatever text editor you set it up for);
code . - open all files in current directory in VS Code;clear - clear terminal window;man - open manual (for example man tree);mkdir - create new folder;sudo apt-get upgrade - get updates;file - obtains information about what type of file a file or directory is.PATHS: ABSOLUTE AND RELATIVE
The very top of Linux hierarchical structure is /ROOT (/).
~(tilde) - home directory (~/Documents = home/ryan/Documents);.(dot) - current directory (./Documents = Documents);..(dotdot) - parent directory (../../ will bring you 2 directories above the one you’re in).If you need to use path that contains spaces use quotes ‘ or “ (cd ‘Holiday Photos’) or escape character (cd Holiday\ Photos).
Hidden files or directories start with .(full stop). For example: .file.txt
Here you can find computer setup guide.