sublime text linux

  1. Open Sublime Text Editor: Launch the Sublime Text editor from the applications menu or by using the terminal command.

  2. Create a New File: Click on "File" in the menu bar, then select "New File" to create a new, empty file in Sublime Text.

  3. Write C Code: Start writing your C code in the newly created file by typing or pasting the code into the editor.

  4. Save the File: Click on "File" in the menu bar, then select "Save" to save the C code file with a .c extension.

  5. Compile the C Code: Open the terminal and navigate to the directory where the C code file is saved. Use the command "gcc filename.c -o outputname" to compile the C code.

  6. Run the Executable: After successful compilation, run the executable file using the command "./outputname" in the terminal to execute the C program.