Linux Flashcards
1
Q
Command:
~$ ip addr show eth1
A
to show the ip Address of eth1
2
Q
>
vs. >>
A
> overrides the output of LHS to RHS
> > Concatenates (adds) the output of LHS to RHS
$ command > file
3
Q
internal commands
A
Built in Commands eg cd, ls, mv
4
Q
~$ -n is the reverse of
A
\n
5
Q
~$ type
A
shows the type of command
6
Q
[~I$ cat Daniel > City.t×t
Vs
[~I$ cat Daniel»_space; City.t×t
A
adds the value of the file or command Daniel into city.txt. It overrides any previous content of city.txt
> > Concatenates
7
Q
~$ curl ifconfig.me
A
check my ip address