1. Who will show on the virtual consoles you are logged.
ls > /dev/tty3
This sends the output of ls to tty3
combos with the keys Ctrl + Alt + F(1 to 6) you can switch to another terminal to go back No graphics omg use Alt + F7
2. apropos time → commando date
date : toont tijd…
date -s hh:mm:ss in order to set the time
3.
- /etc/*
all files in the / etc directory - /etc/*.*
all files in the folder etc which a point appears preceded and followed ddor any number of characters - /etc / * a. *
all files in the folder etc which a point appears preceded by a voorafgeaan by any arbitrary number of characters(. ook gevolgd door….)
4.
ls /etc/?[aoi]*
5.
find / | grep -i host
6.
find / -user root -name xf*
7. From the home directory!
mkdir temp
cp / etc /[abc]* ~/temp
mkdir ~/temp/rommel
mv ~/temp/* ~/temp/rommel
mv: cannot move `/home/djtmp/rommel’ to a subdirectory of itself, `/home/jos/temp/rommel/rommel’
rm -r temp
8.
cal 3 2099 → Thursday
9.
vi /etc/profile (OF vi ~/.bashrc )
add the following lines :
PS1=”Dit is de computer van unh> "
alias cls=’clear’
alias dir=’ls’
10.
mkdir ~/links
ln -s ~/* ~/links/
11.
cut -d: -f1 | sort