0% found this document useful (0 votes)
82 views

C++ Commands

This document provides summaries of common commands for Emacs and Linux. For Emacs, it lists keyboard shortcuts for navigating and editing text, splitting windows, saving files, and cutting, copying, and pasting text. For Linux, it outlines basic commands for changing directories, listing files, creating folders, moving and removing files, checking the working directory, viewing file contents, clearing the terminal, stopping processes, and more. It also lists several code editors commonly used on Linux systems.

Uploaded by

enderoftime
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
82 views

C++ Commands

This document provides summaries of common commands for Emacs and Linux. For Emacs, it lists keyboard shortcuts for navigating and editing text, splitting windows, saving files, and cutting, copying, and pasting text. For Linux, it outlines basic commands for changing directories, listing files, creating folders, moving and removing files, checking the working directory, viewing file contents, clearing the terminal, stopping processes, and more. It also lists several code editors commonly used on Linux systems.

Uploaded by

enderoftime
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Common Emacs Commands

C-a
C-d
C-k
C-_
C-x

................
................
................
................
C-f ............

Beginning of line
End of line
Kill line. Also puts the line in the buffer
Undo
Load a new file or an existing file. The name will be
specified in the window below

C-x
C-x
C-x
C-x

2
1
^
o

Split the window into two


Go back to one window mode
Enlarge window
Switch to another window

..............
..............
..............
..............

Alt-x shell ........ Run the shell in the current window


Alt-x goto-line .... Goto a given line
C-x C-c ............ Save buffer and kill Emacs
C-x C-s ............ Save buffer
C-space ............
C-w ................
Alt-w ..............
C-y ................

Set mark
Cut from the cursor to the mark
Copy from the cursor to the mark
Paste from the buffer

Common Linux Commands


cd .................
ls .................
ll .................
mkdir ..............
mv .................
rm .................
rmdir ..............
pwd ................

Change Directory
List information about file(s)
More verbose version of ls
Create new folder(s)
Move or rename files or directories
Remove files
Remove folder(s)
Print Working Directory

cat ................ Display the contents of a file to the screen


more ............... Display output one screen at a time
clear .............. Clear terminal screen
exit ...............
fgrep ..............
kill ...............
man ................
yppasswd ...........

Exit the shell


Search file for lines that match a string
Stop a process from running
Review the help page of a given command
Modify a user password

emacs .............. Common code editor


vi ................. More primitive but ubiquitous editor
nano ............... Another editor
g++ ................ Compile a C++ program
sc ................. Run the style checker on a file
bed ................ Run the test bed on a file
submit ............. Turn in a file

You might also like