pwd
- Print working directorycd
- Change directorycd ~
- Change directory to your home directoryls
- List files in directoryls -ltr
- Sort list by last modified. -time -reversefile
- 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 more
./searchterm
to search. It is the same command as in vim. n
to scroll to next search result. Press q
to quit.more
- Output file but just little bit at a time. less
is better.history
- Show commands historysudo
touch
- Create a new file.cp
- Copymkdir
- Make directory.rm
- Remove filesort
uniq
grep
head
tail
tr
-d
stands for delimiter. and -f
for field.d
shows that it is a directory.
The next three letters are for read, w
for write and x
for execute. The first three belong to the owner, the second three to the group, and the last three to all users.ps
command.-a
stands for all -u
stands for all processes by all users -x
stands for all processes that don't run a tty
+
/etc/environment
. If you don't have it you can create it and add the path like this: