LINUXOPOLIS # 2019-11-10 ~ BASH-HISTORY

wglenz(54)
Published in
#linux
Words
11
Reading
1 min
7y
Listen to this post
~1 min

HISTORY

Building a Linux habitat
Published with SteemPeak
home previous

ScreenshotScreenshot by Willi Glenz

UPDATE
history     $ history search --contains 'vim'                           // fish
scp         $ scp file.txt pi@a.b.c.d:/home/pi/
scp         $ scp pi@a.b.c.d:/home/pi/file.txt .
system      # cat /proc/ioports | less                                  // ioports
system      $ clear; lspci; echo; lspci -t; echo                        // pci
system      $ clear; lsusb; echo; lsusb -t; echo                        // usb
system      $ watch -d cat /proc/interrupts                             // interrupts
BASH-HISTORY
alias       $ alias ea='vim ~/.bash_aliases && source ~/.bash_aliases'
cat         $ cat /dev/null > file.txt
cat         $ cat /etc/passwd | cut -d: -f7 | sort | uniq -c | sort -nr
cat         $ cat /etc/shells
cat         $ cat > text.txt <<HERE
curl        $ curl cheat.sh/:list | less
curl        $ curl wttr.in
echo        $ echo "It is now $(date +%T) on $(date +%A)"
efibootmgr  # efibootmgr
find        # find / -size +4G 2> /dev/null | vim -
find        # find / -uid 1000 -exec chown -v 1002:1002 {} \;
find        # find / -user userxyz -type f -exec rm -f {} \;
find        # find /home -user userxyz -mtime -3
find        # find /home -user userxyz -size +1G
find        # find ~/Documents -type f -name "*.py" -print | tee ~/python_files.txt
find        $ find -size +100M | less
find        $ find -size +1G | less
find        $ find . -name "*.jpg" -exec convert {} -scale 50% +repage {} \;
find        $ find /etc -type f -print 2> /dev/null | less
find        $ find /etc/*tab -type f -print
find        $ find ~ -maxdepth 1 -type f -exec grep "^alias " '{}' \; -print
find        $ find ~ -maxdepth 1 -type f -mtime 3
history     $ history search --contains 'vim'
ls          # ls /sys/firmware/efi
memtester   # memtester 7G
mkdir       # mkdir -p /mnt/ram; mount -t tmpfs tmpfs /mnt/ram -o size=8192M
mkdir       $ mkdir -p Backups/{Sales,Development,HR}/{Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec}/{Sun,Mon,Tue,Wed,Thu,Fri,Sat}
mkdir       $ mkdir -p dummy/{1..100}/{1..100}
mount       $ mount | column -t
mpg123      $ mpg123 -zvC /home/user/music/*
pip         $ sudo -H pip install --upgrade youtube-dl
printenv    $ printenv | awk '/^PATH|HOME|USER|SHELL/ {print $0}'
ranger      $ ranger ~/.local/share/Trash/
scp         $ scp -r folder/ user@a.b.c.d:~
scp         $ scp file.txt pi@a.b.c.d:/home/pi/
scp         $ scp pi@a.b.c.d:/home/pi/file.txt .
system      # cat /proc/ioports | less                                  // ioports
system      $ clear; lspci; echo; lspci -t; echo                        // pci
system      $ clear; lsusb; echo; lsusb -t; echo                        // usb
system      $ watch -d cat /proc/interrupts                             // interrupts
systemctl   # systemctl status|restart|start|stop|enable|disable
vim         $ vim $(fzf --height 40%)
vim         $ vim $(fzf -e --preview 'head -100 {}')
watch       # watch free -h
watch       $ watch -d -n 5 ls -l
watch       $ watch free -h
watch       $ watch mail
$ vim ~/.bash_history
LINUXOPOLIS # 2019-11-10 ~ BASH-HISTORY | Ecency