Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 997 Bytes

shell.md

File metadata and controls

41 lines (30 loc) · 997 Bytes

The basic command list for you to start using shell/terminal in linux/Mac.

some of them may need an argument, depends on the function

shell/terminal

command function
ls list of files
cd go to directory/fold
mkdir make new directory
touch create new file
cp copy files
man manual of a function
rm remove/delete a file, be cautious!
emacs use emacs to edit a file
tab auto spelling
up arrow previous command

emacs command list

command function
C-x C-s save
C-x C-c exit
C-k kill a line
C-y yank/paste a line
C-a go to begining of a line
C-e gp to end of a line

Java Command

command function
java Hello.java compile and run Hello.java
javac Hello.java compile the java file Hello.java into a runnable binary file Hello.class
java Hello run the binary file Hello.class, no compiling is needed