pwd- Print working directory
cd- Change directory
cd ~- Change directory to your home directory
ls- List files in directory
ls -ltr- Sort list by last modified. -time -reverse
file- Show info about file. What type of file it is. If it is a binary or text file for example.
cat- Output content of file.
less- Output file but just little bit at a time. Use this one. Not
/searchtermto search. It is the same command as in vim.
nto scroll to next search result. Press
more- Output file but just little bit at a time.
history- Show commands history
touch- Create a new file.
mkdir- Make directory.
rm- Remove file
-dstands for delimiter. and
dshows that it is a directory. The next three letters are for read,
wfor write and
xfor execute. The first three belong to the owner, the second three to the group, and the last three to all users.
-astands for all
-ustands for all processes by all users
-xstands for all processes that don't run a
/etc/environment. If you don't have it you can create it and add the path like this: