Skip to content

Latest commit

 

History

History
92 lines (64 loc) · 1.34 KB

File metadata and controls

92 lines (64 loc) · 1.34 KB

Menu


Ubuntu

This part is note written while watching [OJ Tube C Tuturial](https://www.youtube.com/playlist?list=PLz--ENLG_8TMdMJIwyqDIpcEOysvNoonf [C언어 강의]개발자의 로망 - 리눅스 기반 C언어).

Basics

# help
man ls

# return file content
cat file.txt

# list out details
ls -l

# create new dir
mkdir acme

# Ubuntu app store
apt-get update
apt-get install gcc

# show the ASCII hex code of a file
xxd helloworld.c

Vim

Command mode: ESC -> :

  • :w Save
  • :q Quit
  • :q! Quit without saving
  • :wq Save then Quit

Web Dev SSH

Install Composer

wget https://getcomposer.org/installer
php installer

composer --version

(Composer commands see #Composer)

Install Node

  1. Download (Please change Nodejs version as your need)
wget https://nodejs.org/dist/v20.11.1/node-v20.11.1-linux-x64.tar.gz
tar xvzf node-v20.11.1-linux-x64.tar.gz
mv node-v20.11.1-linux-x64 nodejs
  1. Move bin file
mkdir ~/bin
cp nodejs/bin/node ~/bin
  1. Link
cd ~/bin
ln -s ../nodejs/lib/node_modules/npm/bin/npm-cli.js npm
  1. Test command
node --version
  1. Enable npm
cd ~/bin
ln -s ../nodejs/bin/npm npm

npm --version