Here are links to some useful Linux tips:
https://www.cyberciti.biz/faq/linux-unix-appleosx-bsd-cat-command-examples/
https://peteris.rocks/blog/htop/
https://www.cyberciti.biz/faq/searching-multiple-words-string-using-grep/
https://www.cyberciti.biz/faq/using-sed-to-delete-empty-lines/
https://www.cyberciti.biz/faq/linux-hide-processes-from-other-users/
https://www.cyberciti.biz/faq/bash-check-if-process-is-running-or-notonlinuxunix/
https://www.cyberciti.biz/faq/unix-linux-bsd-appleosx-bash-assign-variable-command-output/
https://bash.cyberciti.biz/file-management/linux-shell-script-to-reduce-pdf-file-size/
https://www.cyberciti.biz/faq/bash-file-command-not-found-how-to-install-file/
https://www.cyberciti.biz/faq/set-up-a-basic-iptables-firewall-on-amazon-linux-ami/
https://www.cyberciti.biz/faq/fedora-redhat-centos-5-6-disable-firewall/
https://hackertarget.com/ossec-introduction-and-installation-guide/
Awesome. VIM “for people who don’t want to use it , but have to…”. Or see my page https://www.cyberciti.biz/faq/linux-unix-vim-save-and-quit-command/
sudo is the right choice for granting admin rights on the CentOS Linux 8 server. Learn how to create a new user and grant her admin rights https://www.cyberciti.biz/faq/add-create-a-sudo-user-on-centos-linux-8/
638 Comments
Tomi Engdahl says:
https://hackaday.com/2023/04/18/linux-fu-reading-your-memorys-memory/
Tomi Engdahl says:
https://hackaday.com/2023/05/05/linux-fu-supercharge-bash-history/
Tomi Engdahl says:
https://hackaday.com/2023/05/09/wordstar-reborn/
https://sourceforge.net/projects/wordtsar/
Tomi Engdahl says:
https://hackaday.com/2023/05/24/linux-fu-making-progress/
The pv program can do some of the things you want. It monitors data through a pipe or, at least through its standard output. Think of it as cat with a meter.
By default, pv will show a progress bar, an elapsed time, an estimated end time, a rate, and a total number of bytes. You can turn any of that off or add things using command line options. You can also specify things like the size of the terminal if it should count lines instead of bytes, and, in the case where the program doesn’t know what it is reading, the expected size of the transfer.
Of course, the output of pv is to stderr so it shows up on the screen. This makes it tricky if you want to use it with something like dialog that wants the stdout to be the progress indication. Luckily, you can redirect stderr to stdout and then redirect stdout to a file. Just be sure to do it in that order.
Another Way
There is also progress. It looks around for programs running like cp, mv, dd, and many more, looks at their open files, and shows you progress information for those programs. It only does this once, so you’ll typically marry it with the watch command or use the -M option.
Note that since gzip is one of the programs that progress knows about
As usual with Linux, there are always many ways to do anything. If you are a masochist, you could use ptrace to look inside a program and figure things out from there. You could also do the same trick that progress does and look through a program’s /proc entries.
If you want to add a progress bar to your shell scripts directly, try gum. Or maybe combine progress with widgets to put the result on your desktop?
Tomi Engdahl says:
https://www.cyberciti.biz/faq/how-to-check-how-long-a-process-has-been-running/
Tomi Engdahl says:
https://www.tecmint.com/prevent-ssh-brute-force-login-attacks/
Tomi Engdahl says:
Linux Fu: Easy And Easier Virtual Networking
https://hackaday.com/2023/06/14/linux-fu-easy-and-easier-virtual-networking/
Tomi Engdahl says:
https://www.tecmint.com/vnc-desktop-access-from-web-browser/
Tomi Engdahl says:
https://www.tecmint.com/funny-linux-commands/
Tomi Engdahl says:
https://pimylifeup.com/linux-sleep-command/
Tomi Engdahl says:
https://www.tecmint.com/find-linux-processes-memory-ram-cpu-usage/
Tomi Engdahl says:
https://www.tecmint.com/find-top-large-directories-and-files-sizes-in-linux/
Tomi Engdahl says:
https://www.tecmint.com/ifconfig-command-examples/?fbclid=IwAR3XlJayktr9ULg5obI0d3ZY09fSzGY2Fq5w2k7ARcA3AfW77EctBNY2WlY
Tomi Engdahl says:
https://www.tecmint.com/create-alias-in-linux/?fbclid=IwAR1bQApodowjoiA9eXUwvD9GTyO-9c0YGAHFbEU97bNeHXGpl8PinMS0g50
Tomi Engdahl says:
https://www.tecmint.com/view-colored-man-pages-in-linux/
Tomi Engdahl says:
https://www.tecmint.com/use-linux-awk-command-to-filter-text-string-in-files/
Tomi Engdahl says:
https://www.tecmint.com/sudoers-configurations-for-setting-sudo-in-linux/
Tomi Engdahl says:
https://github.com/uutils/coreutils
Cross-platform Rust rewrite of the GNU coreutils
Tomi Engdahl says:
https://www.tecmint.com/empty-delete-file-content-linux/
Tomi Engdahl says:
https://www.tecmint.com/download-mp3-song-from-youtube-videos/
Tomi Engdahl says:
https://www.tecmint.com/gui-tools-for-linux-system-administrators/
Tomi Engdahl says:
https://www.thetechedvocate.org/10-best-linux-terminal-emulators/
Tomi Engdahl says:
https://www.tecmint.com/testssl-sh-test-tls-ssl-encryption-in-linux-commandline/
Tomi Engdahl says:
Linux Directories Explained in 100 Seconds
https://www.youtube.com/watch?v=42iQKuQodW4
Tomi Engdahl says:
https://hackaday.com/2023/07/10/suc-aims-to-replace-slack-in-five-lines-of-bash/
Tomi Engdahl says:
https://www.facebook.com/groups/2600net/permalink/3676867062536392/
Steve Wilson lol had this random idea to pipe a USB connection over SSH. you can totally do it lol.
On your local machine: ssh -R1234:localhost:1234 [email protected]
This opens port 127.0.0.1:1234 on remote.example.com which then connects to 127.0.0.1:1234 on your local machine.
Now you use socat to connect to the serial line of your USB:
On your local machine: socat -d -d -d tcp-listen:1234,reuseaddr,fork,bind=127.0.0.1 /dev/ttyUSB0
TCP -> Pipe
On the other side, if the software cannot use TCP but wants to talk to a pipe or tty, you can use socat again to provide that:
On the remote: socat -d -d -d unix-listen:.mypipe tcp-connect:127.0.0.1:1234
Now let your remote software connect to .mypipe and it is transparently connected to /dev/ttyUSB0 on your local computer.
But your mileage may vary. It depends heavily what your software in the cloud needs.
End quote.
Now FIGHT!!! and tell him how this is impossible, 2600 “hackers”.
#2600 #hackers #learnsomethingnew #2600net #usbhacks #linux #socat
Tomi Engdahl says:
Linux Fu: The Old School Terminal
https://hackaday.com/2023/08/23/linux-fu-the-old-school-terminal/
Tomi Engdahl says:
https://hackaday.com/2023/09/08/linux-fu-build-a-better-ls/
Tomi Engdahl says:
https://hackaday.com/2023/09/27/explore-linux-space-time/
Tomi Engdahl says:
https://www.phoronix.com/news/Milk-V-Duo-Linux-Patches
Tomi Engdahl says:
https://hackaday.com/2023/10/17/linux-fu-deep-git-rebasing/
Tomi Engdahl says:
https://www.redhat.com/sysadmin/ssh-automation-sshpass
Tomi Engdahl says:
https://www.cyberciti.biz/faq/how-to-check-for-ssh-connectivity-in-a-shell-script/
https://bash.cyberciti.biz/security/expect-ssh-login-script/
Tomi Engdahl says:
https://www.tecmint.com/linux-sed-command-tips-tricks/
Tomi Engdahl says:
https://www.tecmint.com/best-notepad-alternatives-for-linux/
Tomi Engdahl says:
https://www.tecmint.com/tilix-gtk3-tiling-terminal-emulator-for-linux/
Tomi Engdahl says:
https://www.tecmint.com/linux-network-bandwidth-monitoring-tools/
Tomi Engdahl says:
https://pimylifeup.com/using-ntp-on-linux-with-chrony/
Tomi Engdahl says:
Git-palvelimen ylläpitäminen
https://shell.sendanor.fi/gitolite.html?fbclid=IwAR0Wwk1a9tj4u3Afc8bfx5MBkTKkyRjPSM0k1JtRlSo2UObWB9jLRff6MhU_aem_AXm8oLel9uw3-4IKGt3HU5CTyMfAFL5JtD5FpOMg-VSrxyuOfx-1OLsUDaiWnw9zYTNRJN3gHjet0O5TCVeWn9tv
https://www.sendanor.fi/shells??t=YEARLY
Tomi Engdahl says:
https://www.tecmint.com/linux-terminal-file-managers/
https://www.tecmint.com/linux-terminal-file-managers/
Tomi Engdahl says:
https://github.com/green-green-avk/AnotherTerm
Tomi Engdahl says:
https://www.tecmint.com/run-linux-live-images-from-hard-disk-in-linux/
Tomi Engdahl says:
https://www.tecmint.com/download-youtube-videos-linux/
Tomi Engdahl says:
https://www.cyberciti.biz/faq/linux-run-a-command-with-a-time-limit/
Tomi Engdahl says:
https://imzye.com/Shell/bash/concurrency-in-bash/
Tomi Engdahl says:
https://flarexes.com/linux-firejail-securely-throw-untrusted-applications-behind-bars
Tomi Engdahl says:
https://www.howtogeek.com/fun-linux-commands/
samm says:
To use different command in Linux
Tomi says:
https://hackaday.com/2024/01/17/linux-fu-wheres-that-darn-file/
Tomi Engdahl says:
https://www.tecmint.com/execute-commands-on-multiple-linux-servers-using-pssh/