Skip to content

Latest commit

 

History

History
64 lines (39 loc) · 1.91 KB

Command-line.md

File metadata and controls

64 lines (39 loc) · 1.91 KB

Important features for a text editor:

  • Code Completion
  • Syntax highlighting
  • Reduced Eye strain theming
  • Healthy selection of extensions

Text Editor:

Native Software: not as feature heavy Third-Party Options: A variety of options and support features

Text editor | edits text IDE (Integrated Development Environment) | full package (text editor, file manager, compiler, and debugger)

Command Line:

Bash: Born Again SHell (Shell = User interface)

pwd: Print Working Directory; tells you current working directory

ls: List; lists the files in a certain directory

ls [Option] [Location]

cd [Location]: Change Directory, without the location takes you to the home directory

file [path]: tells you the file type of a file

'x' = file name that might have alternate characters

Holiday\ Photos: nullify the special meaning of the next character

Type a . in front of the directory name to make it "hidden"

EVERYTHING IS A FILE!

CASE SENSITIVE!

Absolute vs Relative Path: Absolute Paths specify a location in relation to the root directory, always begin with a '/'. Relative Path specify a file or directory in relation to our current location.

~ = home directory
. = Current Directory
.. = Parent Directory

Options:

-a: Show hidden files in a directory

-l: Long Listing

	- First character indicates whether it is a normal file ( - ) or directory ( d )
 	- Next 9 characters are permissions for the file or directory (we'll learn more about them in section 6).
	- The next field is the number of blocks (don't worry too much about this).
	- The next field is the owner of the file or directory (ryan in this case).
	- The next field is the group the file or directory belongs to (users in this case).
	- Following this is the file size.
	- Next up is the file modification time.
	- Finally we have the actual name of the file or directory.