Basic UNIX commands

From Antalya
Revision as of 13:56, 27 November 2020 by Kgf (talk | contribs) (Created page with "<table class="table table-striped"> <tr> <th>Command</th> <th>What for</th> <th>Advanced version</th> <th>What does it do?</th> </tr> <...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Command What for Advanced version What does it do?
ls list contents of directory ls -latr list all files with more information, sort in reverse order than when it was created
cd change directory cd - change to the last directory you were in
cp copy files/directories cp -a copy while preserving all properties
mv move file (change name) mv -i move but ask if you are overwriting an existing file
rm remove (delete) rm -rf * delete everything, without asking and without mercy (very dangerous)
less view an ASCII file