Тёмный

Power Use of UNIX • Dan North • GOTO 2013 

GOTO Conferences
Подписаться 970 тыс.
Просмотров 81 тыс.
50% 1

This presentation was recorded at GOTO Aarhus 2013. #gotocon #gotoaar
gotocon.com
Dan North - Agile Troublemaker, Developer, Originator of BDD @daniel-terhorst-north
ABSTRACT
"Awk" sed Vi, "Ar" sed Ed
Thus begins an old, and sadly lost in the mists of Usenet, love story about Vi and Ed (who becomes her "ex"), told entirely in Unix commands. I had no idea when I started learning these arcane (guess how the "dd" command got its name) and cryptic (what about "grep"?) Unix commands how incredibly useful they would become over the next two decades. If your primary OS is Linux or OSX on the desktop, and maybe iOS or Android on the move, you'll find this 40-something year joke ("Unix" itself was a bad pun) has managed to embed itself into every facet of your technological life.
Being comfortable at a shell prompt and having a healthy working knowledge of Unix commands and regular expressions will give you a whole new level of capability. In this fun talk I'll introduce a few commands and shell tricks you should have in your back pocket, and show you how to start taking control of your operating system. If you ask nicely I'll even tell you about the production system I wrote using Makefiles.
/ gotocon
/ gotoconference
gotocon.com
#Unix #Grep

Наука

Опубликовано:

 

7 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 128   
@willyglover
@willyglover 5 лет назад
UNIX was developed starting in 1969, by Ken Thompson, Dennis Ritchie and a couple other folks, not at Berkeley, but at AT&Ts Bell Labs. Berkeley university didn’t have anything to do with UNIX until 1977 when they created the Berkeley Source Distribution, or BSD. Fun fact, UNIX from V4 and on was rewritten in C, also developed by Dennis Ritchie, to make it more portable. It was previously written in PDP-11 assembly, for the first machine that ran UNIX. The first Bell Labs internal release was in 1971, and the first release outside of the Labs was 1973.
@vincenzo-zocca
@vincenzo-zocca 5 лет назад
Dan knows his way around UNIX but still made a considerable slip-up regarding UNIX provenance. How long before some shady corporation will manage to get credit for UNIX, GNU and Linux?
@djonesuk
@djonesuk 4 года назад
Stopped watching the instant I heard him make this major gaffe. The guy doesn't clearly doesn't know what he's talking about. If you're going to present yourself as an expert on a topic you should at least know the very basic stuff.
@robertmaclean7070
@robertmaclean7070 4 года назад
Thank you so much so many people don’t know and they don’t know they dont know.
@schmoonkie
@schmoonkie 3 года назад
I'm with David Jones on this one. Lost interest instantly early in the video after that serious mistake. Unix was initially developed on a PDP 7 Short : The Thompson and Ritchie Story ( ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-g3jOJfrOknA.html ) Longer: VCF East 2019 -- Brian Kernighan interviews Ken Thompson ( ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-EY6q5dv_B-o.html ) The second is a longer presentation, which is informative and highly entertaining.
@hhskladby1596
@hhskladby1596 2 года назад
He says he and UNIX were both born 1970
@dipi71
@dipi71 6 лет назад
The power of UNIX compelled me in 1990. UNIX is really that great that even the »UNIX HATERS Handbook« (Garfinkel/Weise/Strassmann, 1994) reads like a love letter.
@BrazenNL
@BrazenNL Год назад
Right amount of humor, history and knowledge. Kudos.
@taco2s299
@taco2s299 9 месяцев назад
One of the best videos I have ever seen on the Internet.
@jujharsingh8128
@jujharsingh8128 5 лет назад
I still like to watch this again from time to time. Thanks @Daniel Terhorst-North
@BantuTu
@BantuTu 2 года назад
Same here
@navarrodba
@navarrodba 7 лет назад
All presentation in plain text...cool!!! And very interesting this. Very nice!
@gregf9160
@gregf9160 6 лет назад
That was _really_ nice. Thanks, Dan.
@adam872
@adam872 5 лет назад
Been using some variant of Unix since about 1991 and it's still the most powerful environment out there IMHO. It's also simple in concept and execution, which makes it wonderfully elegant.
@flyddw
@flyddw Год назад
it's funny you do the "echo cmd" technique. I've learn that a while back. BUT - instead of REMOVING the echo once you are assured the command is good, I just add "| bash" (or whatever shell you like) - and BOOM - it executes all the commands you created with text.
@trudyandgeorge
@trudyandgeorge Год назад
Niceeee
@nXqd
@nXqd 8 лет назад
I'm a sane developer, when I see Unix I click like :)
@hblaub
@hblaub 6 лет назад
Really great stuff. Most of it, I'll use at least once a week :-D
@thingsiplay
@thingsiplay 3 года назад
Written by Jason Bourne. I almost spit coffee without having coffee in my mouth. 🤣 Wonderful.
@notmusics
@notmusics 8 лет назад
Great talk. I was hoping he'd describe that python one liner he mentioned at 12:23
@smorrow
@smorrow 5 лет назад
In Plan 9 you could just click on the output of the grep -n
@yeonghokim
@yeonghokim 8 лет назад
Really enjoyable talk!
@marianoforti1737
@marianoforti1737 5 лет назад
this talk is so good
@hrnekbezucha
@hrnekbezucha 6 лет назад
_"Each command does one thing and it does it well."_ I really thought the exception will be _systemd._
@meteor8076
@meteor8076 4 года назад
hahaha, funny
@YoutubSUCKZ
@YoutubSUCKZ 4 года назад
systemd was inspired by microsoft technology
@calanm7880
@calanm7880 3 года назад
Friday night - this vid is way better than the tele!
@TejaswiBitra
@TejaswiBitra 8 лет назад
Jaw dropping, insane Unix
@jaworskij
@jaworskij 5 лет назад
AT&T's Bell Labs created UNIX and C. Berkley just added stuff to it, called it "extensions" and gave away or sold its own version. that's why we have System V UNIX (AT&T) and Berkley UNIX or BSD.
@saf271828
@saf271828 3 года назад
The "dd" command was inspired by the IBM S/360 "DD" directive in JCL files.
@bbpetrov
@bbpetrov 5 лет назад
you reminded me to watch Bourne series again!
@AdrienSales
@AdrienSales 4 года назад
Great talk !!!
@CarlosAlexandre-dc3lw
@CarlosAlexandre-dc3lw 5 лет назад
Awesome talk!
@JohnThrowerHome
@JohnThrowerHome 8 лет назад
Great session #unix
@PalinuroRex
@PalinuroRex 5 лет назад
Your awesome dude
@garyg4158
@garyg4158 8 лет назад
Getafix! OMG I haven't seen that name in years. I think I'm going to go through my Asterix comic books! :D
@andriirubtsov5404
@andriirubtsov5404 5 лет назад
'fish' shell is also worth considering
@EdwardVarner
@EdwardVarner 2 года назад
I expected this to be about the power draw Unix creates vs other OSs lol Still an interesting talk!
@punkflyer5954
@punkflyer5954 8 лет назад
wow~very cool~ operation
@taco2s299
@taco2s299 9 месяцев назад
Btw, does anyone know what terminal emulator he is using? I can't identify it.
@BeatSyncBytes
@BeatSyncBytes 5 лет назад
The best
@abdellahcodes
@abdellahcodes 4 года назад
Rewatching after a few years. This is pure gold.
@ZakariaRabiai
@ZakariaRabiai 6 месяцев назад
It's been a few years
@abdellahcodes
@abdellahcodes 6 месяцев назад
@@ZakariaRabiai wow, I love this comment The previous one was a few years after watching it the first time, maybe I should watch it again
@noriotakemoto1462
@noriotakemoto1462 6 лет назад
What is the program he is using for his presentation? Is it vim? And what is the mode or add-on to show and hide the blocks?
@victordu7216
@victordu7216 6 лет назад
I think it's tmux
@danieltripp2578
@danieltripp2578 4 года назад
Did you ever find out ? I like the idea of some kinda virtual markup/markdown in the shell...
@danieltripp2578
@danieltripp2578 4 года назад
@@victordu7216 He (presenter Dan) already said he was using tmux, I think what Norio was asking was what was the markdown/markup or whatever "thing" that he was using for the text of the presentation... I'm intrigued - I could use something like that...
@danieltripp2578
@danieltripp2578 4 года назад
I think it might be vim outliner.... ?
@p410n3
@p410n3 4 года назад
The program is vim and the way he opens the text is just code folding. When you are in vim press zf9j to fold 9 lines. Or zf100j for 100 lines. Also works with f and %
@randyt700
@randyt700 8 лет назад
what unix is he actually using vim on? or is it a linux distro?
@OmarPolo
@OmarPolo 8 лет назад
+Randy Tang He's using Ubuntu. I cannot tell you the version, but that (unfortunatly) was clearly ubuntu :)
@LambdaJack
@LambdaJack 5 лет назад
"Everything is a set"!
@steve17
@steve17 8 лет назад
The messed up powerline bar in Vim drove me nuts.
@KarthikS30712
@KarthikS30712 Год назад
Dan North.... Darth Non.
@civfiveaddict8527
@civfiveaddict8527 6 лет назад
Nice talk
@extrachannel7457
@extrachannel7457 4 года назад
Does this work in linux
@AbhishekSinghSambyal
@AbhishekSinghSambyal 6 лет назад
His system's battery backup is 4hr 10mins. Since when Linux machine started giving this much backup? The maximum I get on Lenovo Y50 is 2hrs. I tried TLP/PowerTop, disabled my Graphics card but it didn't help. If someone knows any other way please let me know.
@leberkassemmel
@leberkassemmel 6 лет назад
Two things Apple did right: - I get over 14 hours of battery life on my Macbook Air (2015, 13") on the CLI. This is more than the claimed 12 hours. - Make the man pages better than linux. Or use the BSD ones and not change them. I don't care which one it is, only thing i know is with the Mac tar manpage i am able to extract an archive. The linux version tells me it is crap and i should use "info tar".
@hhskladby1596
@hhskladby1596 2 года назад
12 hours on cheap Asus with Flash storage only. Your working machine need not be a server.
@vxe1392
@vxe1392 8 лет назад
unix, invented at berkeley eh? 1:17
@ricardo.mazeto
@ricardo.mazeto 7 лет назад
He's mistaking Unix by it's clone BSD.
@mhammad7391
@mhammad7391 6 лет назад
It was built at Bell Labs led by Dennis and Ken Thomson.
@prodevel
@prodevel 5 лет назад
Dennis Ritchie to be more precise.
@jaworskij
@jaworskij 5 лет назад
That equivalent to Al Gore claiming he invented the Internet.
@hhskladby1596
@hhskladby1596 2 года назад
He is not mistaking nothing, he gives 1970 as Unix birth, then jumps to BSD, and then showing Linux stuff as "Unix" - as informal as it is normal, and we all know what he is talking about. That's from a conference where attendees need not been told basics.
@ImageJPEG
@ImageJPEG Год назад
This has shown how heavily unused I’m using FreeBSD.
@AxelWerner
@AxelWerner 7 лет назад
One OS to rule them all GNU/LINUX
@edgeeffect
@edgeeffect 4 года назад
GNU/Linux gets more like Windows every day... I long for the simplicity of Unix before smart-ass developers decided they had infinite memory and processing speed.
@zzRider
@zzRider 4 года назад
edgeeffect you long for the Minix 3?
@mad3m6n
@mad3m6n 4 года назад
Nasty.
@eamoc
@eamoc 4 года назад
@@edgeeffect go Void, or Artix
@antagonizingusername
@antagonizingusername 3 года назад
@@edgeeffect You have the power to use simpler/more unixy programs on Linux with like 90% compatibility beyond maybe bloated garbage like steam requiring pulseaudio. All the bloat/windowsisms/redhat bullshit is just the result of Linux entering the public eye and the baby duck syndrome/refusal to adapt to something new from your average sheep consumer.
@unixdude44
@unixdude44 8 лет назад
I never understood why Microsoft couldn't include these tools in MSDOS package, they are so easy to write.
@ediz911
@ediz911 8 лет назад
easy, yeah right ^^
@thewatcher_476
@thewatcher_476 8 лет назад
"easy"
@BryonLape
@BryonLape 7 лет назад
But edlin was so great.....
@RonJohn63
@RonJohn63 7 лет назад
Because you don't understand that MS-DOS is a direct descendant of the single-tasking CP/M OS.
@ranader8102
@ranader8102 5 лет назад
Lookup Xenix ;-)
@adamryan3867
@adamryan3867 5 лет назад
That's what I do everyday without any production..
@smorrow
@smorrow 5 лет назад
Brian Kernighan did not write cc.
@youreale
@youreale 5 лет назад
My first thought was that presentation was about the power of UNIX, wich is a canonical piece of technology. But the moment you start using VIM to present the content, I realized that the talk is about religion, not UNIX.
@towolf
@towolf 5 лет назад
Zee-Shell, or Zed-Shell, please decide.
@ximalas
@ximalas 5 лет назад
According to Brian Kernighan, it's pronounced e d, not ed. Have a look at the computerphile interviews.
@smorrow
@smorrow 5 лет назад
Rob Pike used the same pronunciation in a recent, very good talk. And yet sed is a single syllable. One thing I've always wondered is: if Rob Pike doesn't say /Ed/ (like the male name), then why were the next ones called jim and sam?
@juaneduardocasillacamarill8383
@juaneduardocasillacamarill8383 3 года назад
great video! but it was a zsh, not unix, video ):
@Reichstaubenminister
@Reichstaubenminister 2 года назад
Well, some UNIX basics, more Linux basics and then some shell basics. And I think everything he showed in the shell is POSIX compliant.
@SteelHorseRider74
@SteelHorseRider74 4 года назад
You know you are a Unix guy if you a. use neither Apple nor x86(_64), b. use zsh and c. use vim for presentation!!! ^_^
@jonesconrad1
@jonesconrad1 4 года назад
If you're a unix guy you have installed zsh on your Apple UNIX (prior to current version because it's the default now)
@hhskladby1596
@hhskladby1596 2 года назад
Yes, zsh would be nowhere without Bash's GPL vs Apple, ie. zsh means you are Mac
@nikosc
@nikosc 5 лет назад
Where can I find a video like this but for Linux?
@mad3m6n
@mad3m6n 4 года назад
This is bash and on Linux.
@francescoorlando5163
@francescoorlando5163 4 года назад
Pietro Sammarco Sta utilizzando zsh non bash. though unix commands generally are the same for GNU/Linux, BSD and other UNIX-Like OS
@alexxx4434
@alexxx4434 4 года назад
UNIX crash course
@BryonLape
@BryonLape 7 лет назад
And Windows only trained server admins wonder why I install CygWin on all the servers for which I am responsible.
@jonesconrad1
@jonesconrad1 5 лет назад
not everyone is trained, some people can learn for themselves.
@Southpaw101
@Southpaw101 5 лет назад
You don’t have to any more with WSL
@meteor8076
@meteor8076 4 года назад
@la il "no one uses any of these Unix-like operating systems nowadays" are you serious ? Unix is almost on any device. What do you have in the pocket right now Android or iPhone ?
@aceflamez00
@aceflamez00 8 лет назад
You sound like lewis from the Yogscast lol
@OfferoC
@OfferoC 8 лет назад
"Do all your logging through stdout." NO WAY. This is not good practice. stdout should be used for human consumption of messages or as information meant to be piped to other programs. Syslog is good. "Print"ing your log statements is bad. Use stderr for logging if you are using one of the normal piping mechanism. And also use proper exit codes. Otherwise, great overview.
@danschmidt5189
@danschmidt5189 8 лет назад
+Chris K STDOUT can be easily rerouted to other destinations (log files, syslog, ...). It's also simpler, eliminating the need to guess what file(s) the application logs to. And lastly it works well with a container tool like Docker, which expects the primary process to log to STDOUT.
@OfferoC
@OfferoC 8 лет назад
I agree for simple cases, except using stderr as the log channel. Also, stdout logging is synchronous, so if you are in an async environment, be aware of that.
@dipi71
@dipi71 6 лет назад
It’s only synchronos if you fsync(2) all the time; else, it’s buffered like almost everything I/O. As I understand »daemonizing processes«, you are supposed to close all handles besides STDIO because then your daemon is compatible with foreground execution, syslog'ed or even rsyslog'ed/journald’ed background execution.
@TruthNerds
@TruthNerds 5 лет назад
​@@danschmidt5189 stderr can also be easily redirected in a typical shell. E.g. (bash): Redirect stderr to file: foocmd 2>/path/to/my/file Redirect both stdout and stderr to same file: foocmd &>/path/to/my/file Merge stderr into stdout (can be combined with a pipe, of course): foocmd 2>&1 Or, if you feel fancy, you can even swap stdout and stderr: foocmd 3>&2 2>&1 >&3 3>&-
@user-yf8il6we2z
@user-yf8il6we2z 5 лет назад
I think Unix is better than Windows.
@NickNorton
@NickNorton 5 лет назад
Windows Admins click on cute icons. *nix Admins execute commands.
@smorrow
@smorrow 5 лет назад
And edit text files. How do you take the diff between two Control Panel configs? How do you make a config locally then email it to someone? How do you write a script that outputs a config?
@philosophiaentis5612
@philosophiaentis5612 4 года назад
Windows is a toy compared to UNIX.
@hhskladby1596
@hhskladby1596 2 года назад
Please rename it "standard tools in Unix based shells". It is not about Unix, nor any powers besides knowing these tools or not.
@mercster
@mercster 6 лет назад
I'll watch the video, but damn dude. Berkeley invented UNIX? Impetuously using VIM for a talk instead of a more suitable tool? My first UNIX prompt was in 1992, but I think you are the tool here.
@mercster
@mercster 6 лет назад
I'm watching you having great difficulty navigating the VIM file you decided would be good for a presentation, I guess in order to look "hip" and let us know that vi can do anything. You dope.
@mercster
@mercster 6 лет назад
A talk extolling the beauties of UNIX, and then push zsh so hard... disgrace. I HATE THIS WHOLE TALK.
@TruthNerds
@TruthNerds 5 лет назад
Also, Bourne shell was written by _Jason Bourne_ ? His cheap joke depends on it, but the actual author is Stephen R. Bourne.
@ji1046
@ji1046 4 года назад
learning a syntax such as "for f in *(.); do =${f%%.*}; mv }f }d/.;" or simply typing each number at the search bar and doing ctrl+a selecting everything and putting it into a folder? linux is a syntax hell and people also percieve if it was a good thing... all of these things can be done in windows gui without needing to know any commands. linux doesnt have a handful list of commands to begin with. a new user without internet can not do anything in terminal.
@RonJohn63
@RonJohn63 7 лет назад
"Unix was invented by very smart people..." True. "at Barkley (Berkeley) University..." ? Stunned silence, then ROFL. "in 1969." True. With this much of an error rate on such simple stuff so early, I think I'll pass.
@jonesconrad1
@jonesconrad1 6 лет назад
My thoughts too.
@hhskladby1596
@hhskladby1596 2 года назад
@@epsi Maybe he thinks his audience knows this and in advance
@ryanwilson8629
@ryanwilson8629 3 года назад
He doesn't even know his Unix history.
@naheelazawy
@naheelazawy 5 лет назад
No one? Really?? Ok.. EMACS IS THE BEST
@ulissemini5492
@ulissemini5492 5 лет назад
*worse then vim
@charlesclements4350
@charlesclements4350 4 года назад
I can not understand a thing he is talking about. He talks too fast and skips around too much. I can not follow his logic. If Dan were to try to sell me a car, I would have been gone ten minutes ago.
@briananderson8733
@briananderson8733 3 года назад
CALL BULLSHIT...... UNIX was invented by Ken Thompson and Dennis Ritchie at Bell Labs a part of AT&T. Berkeley came along later. BUT THEY DID NOT INVENT UNIX. THEY INVENTED BSD versions.
Далее
"What UNIX Cost Us" - Benno Rice (LCA 2020)
34:14
Просмотров 194 тыс.
Patterns of Effective Teams • Dan North • GOTO 2017
51:04
Linux like original Unix
44:55
Просмотров 300 тыс.
Where GREP Came From - Computerphile
10:07
Просмотров 931 тыс.
UNIX and Linux Shells
18:22
Просмотров 8 тыс.
Introduction to NoSQL • Martin Fowler • GOTO 2012
54:52
Bash vs ZSH vs Fish: What's the Difference?
13:32
Просмотров 152 тыс.
Linux File System/Structure Explained!
15:59
Просмотров 4 млн
How To Unlock Your iphone With Your Voice
0:34
Просмотров 19 млн
Mac Mini Собираем из двух один!
0:59
wireless switch without wires part 6
0:49
Просмотров 1,2 млн
Лучший худший экран - PowKiddy RGB30
12:56