Skip to content

Advanced commands

CiamalaKombeGreg edited this page Oct 5, 2023 · 8 revisions

Advanced commands of linux shell

You can find example of more complex commands here, mostly mix of basic ones.

The command whatis is a brief version of man, giving you the basic understanding of what a command does.

Sort

Well, the command sort sort lines of a file. You can use the option -r to sort it in reverse. The command can be write sort <file>.

touch test.txt # > 5 lines with the follow up lines : bedroom, apple, customer, uranium, gorilla.
sort test.txt # > display as apple - bedroom - customer - gorilla - uranium

who

It show all users connected to the system. You can just type who in the shell.

adduser

It create a new user or edit a former one. You can type it adduser <pseudo>.

useradd Halima

Clone this wiki locally