NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

ll = all files not normally shown. files whose names start with "."
vim hello.c
play around with "vimtutor" to learn vim
to get out type ":q" (escape command first)
ls = tells you what files (not dot files) are in the directory.
ls-a: shows me all files including whose name starts with "."
mv hello.c .hello.c => moves file
Nothing special with files whose name start with "."
In UNIX, you won't see "." files
".." is present in every directory. Chains back to the previous directory
"~" (Tilda) is shorthand for the home directory.
cd . => nothing happens
"-l" => long format | owner group size of file last-modified date
"-F" => adds some hint to tell you what kind of file. Tags single character after filename. / if a directory, * if program
Shorthand writing ex. "-alF"
alias "ll" = 'sl - etc'. Type "alias" to see all possible aliases
Before you set up an alias, you need to make sure there are no already used commands
cat <filename>.c => dumps file onto the window. You can type multiple files with space.
cat <filename>.c <filename>.c
Compiler => gcc <filename>.c. Type "ll" afterward
bash will look for commands in certain places
"which ls" will tell you where the command is.
to see output get "pwd" and then add file. (ex. pwd/a.out or ~/tmp.out or ./out"
In "./a.out", the dot refers as current directory
You can rename the file output by writting "ggc <filename>.c -o <new filename>". When you type ll, the output is highlighted and tagged with an *
In any UNIX/LINUX like system, ".c" is a c-program.
GCC does two steps as once, compilation and link. Only one step: "ggc -c hello.c". You get an object file after typing "ll". The file is not complete, part of the program that makes the whole program. Once you have the object file, run ggc again but with the object: "ggc hello.o -o hello". This step is called linking; you link all the ".o" files together. Removed intermediate ".o" file.
To save a vim file, press ESC and then type :x to save and exit.
To see machine code, type "filename".o. Not readable code.
ggc -c -Wall hello.c
-Wall => checks to see if functions were explicitly declared. Simply declare the function at the top line (above your main file). This is called function declaration/prototype/declaration. Minimum required for C program. You at least need to declare it before you even write it.
The "printf" line is included in the header file <stdio.h>. Please find header file in some predefined system directory. "Paste the content of stdio into the file" ~ Copy and Paste
locate stdio.h. The file were are using starts with user/include/...
man ls => manual page for ls
<> = find file in predefines sys directory
"" = find file here
rm *.o hello => remove anything with .o
You can update the header file to include more/ fewer parameters to a function you defined somewhere else

     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.