Frage | Antworten | |||
---|---|---|---|---|
Find a letter starting with l, ending with x, having exactly 3 other letters in between
|
grep 'l... x' <filename>
|
|||
Display current target
|
systemctl get-default
|
|||
File where you change global settings
|
/etc/profile
|
|||
File where you change user settings
|
/etc/bashrc
|
|||
Application that packs but does not compress
|
tar
|
|||
Application that compress files
|
gzip
|
|||
How to pack a file
|
tar -cvf archive. tar /var/log
|
|||
How to view content of. tar archive?
|
tar -tf archive. tar
|
|||
How to compress an archive
|
gzip myarchive. tar
|
|||
How to pack and compress a file in one line
|
tar -czvf archive. tar. gz /var/log
|
|||
How to decompress gzip archive
|
gzip -d myarchive. tar. gz
|
|||
How to unpack. tar files
|
tar -xvf myarchive. tar
|
|||
How to unpack and decompress. tar. gz archive?
|
tar -xzvf myarchive. tar. gz
|
|||
How to create. tar. archive with star
|
star -c -f=myarchive. tar directory
|
|||
How to list. tar archive with star?
|
star -t myarchive. tar
|
|||
How to unpack. tar archive with star
|
star -x -f myarchive. tar
|
|||
How to decompress. tar. bz diretory with star?
|
star -bz -x f=user-logs. tar. bz2
|
|||
How to jump to the begiining od the command line
|
CTRL + A
|
|||
How to jump to the end of the command line
|
CTRL + E
|
|||
How to jump to the beginning of the word
|
CTRL + ARROW
|
|||
How to navigate left in vim/vi
|
left arrow or h
|