Unix commands

Usefull Unix commands

Command which I used in the past.

Basic

dir – List directory (filenames / permissions / size / date)
ls -la – List files in specific directory (filenames / permissions / size / date)
ls – List files in specific directory (only filenames)
cp fileA fileB – Copies fileA to fileB
chmod u+x filename – Sets permissions to filename

VI Editor

vi filename – Open VI with filename
i – Insert text
ESC – Exit insert mode
dd – Delete line
:wq – Save and exit
yy – Cut
p – Paste

IPKG

IPKG install packageName – Install IPKG package with name packageName