Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- history | grep 'apt update'
- HISTTIMEFORMAT="%d/%m/%y %T " history | grep 'apt update'
- ls -l /var/cache/apt/pkgcache.bin | cut -d' ' -f6,7,8
- stat /var/cache/apt/pkgcache.bin
- function trimString()
- {
- local -r string="${1}"
- sed -e 's/^ *//g' -e 's/ *$//g' <<< "${string}"
- }
- function isEmptyString()
- {
- local -r string="${1}"
- if [[ "$(trimString "${string}")" = '' ]]
- then
- echo 'true'
- else
- echo 'false'
- fi
- }
- function info()
- {
- local -r message="${1}"
- echo -e "