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
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 |
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 |
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 |