728x90
728x90
Directory
0. Directory Dots
. : This directory
.. : Upper Directory
1. Change Directory
cd (directory name)
2. Make Directory
mkdir (directory name)
3. Remove Directory
rm (option) (directory name)
-r : recursion
-f : force
4. Move File (or Rename)
mv (original file path) (destination path)
5. Show Operation History Stack
history
6. Show File Contents
cat (file name)
7. echo
check the value that has been delivered to OS
echo $?
8. touch
make empty file
touch (file name)
VIM
0. Install VIM
sudo apt-get install VIM
1 . Open File with VIM
vim (file name)
2. Insert Mode
press I
3. Write
:w
4. Quit
:q
5. Overwrite
:q!
GCC
0. Install GCC
sudo apt-get install gcc
1. Make Executable File
gcc (file name)
2. PreProcess
gcc -E (file name)
3. Assembly Code
gcc -S (file name)
4. Make File with Other Name
gcc (original .c file) -o (file name)
bashrc
Linux Environment Variables and Path Code
These Codes run when bash turns on
vim ~/.bashrc
alias my_ws='cd ~/my_ws'
PATH="$PATH:."
728x90
728x90