Комментарии:
Amazing man thanks!
ОтветитьPush and pop works like a stack , can we pop from the middle in some way?
ОтветитьJumping to be the beginning and end of the line is very useful. Is there a command to go in the middle of the line or move word by word back and forth? Or maybe 3 words back and forth at once?
ОтветитьUse `less +F` instead of `tail -f`.
ОтветитьBeen using Linux for decades and I still learned some things from this. Thank you. Now I want to share the world changing CLI tip I learned within the last decade.
tail -F
The capitol F will "follow" Log files that roll over. For example if your tailing syslog and it gets rolled to syslog.1 the tail -F will continue tailing the new syslog file.
I work on apps that write lots of data to their log files and roll them rapidly. The tail -F option saved me from missing things and or having to go back and grep through he log files.
One tip I think is similar to "!!" to repeat the entire previous command, is to use "!$" to repeat just the last argument from the previous command. If I "cat ~/longpath/somefile", then decide I want to edit the same file, it's a simple "vim !$". It's also useful when you "ls ~/longpath/somelongdir", see the file you want to edit, and can then just "vim !$/somefile".
Ответитьsuper helpful! thanks!
Ответитьearned a sub! love this
ОтветитьThis is currently my favourite video on this channel, for which there has been a lot of competition. A lot of the tips in here are 100% going to be applied at work after the holidays. This channel has been fantastic for ramping myself up in a lot of skills I'm using in my current role. That and I want to start up a homelab, so even more mileage to be had on this channel. Top quality content, Jay, thank you for all of this.
Ответитьah! the HISTCONTROL was my favorite trick!
ОтветитьDefinitely going to bed a little smarter this evening.
ОтветитьThank you coming from Cebu, Philippines.
ОтветитьThanks for you patience and to explain the beautiful tricks, i knew most of them are experts in this but being newer, even drop of learning is useful.
The last command can be seen clear after pressing F11.
Informative keep up the good work
ОтветитьThank you for this. It was really helpful and im sure its gonna help a lot of people from diferent levels.
Ответитьwho else watches MauLer's long format videos in more or less one sitting on a weekend day? very enjoyable
ОтветитьHi great video; if you add alias cmatrix='cmatrix -s' to .bash_aliases cmatrix will act like a screen saver i.e. any key subsequently pressed will exit cmatrix.
ОтветитьCtrl + y will paste whatever you yanked with Ctrl + u, Ctrl + k, or Ctrl + w.
One use for this is when you forget to type sudo in the beginning of a line. So you would Ctrl + u the line then type in sudo then Ctrl + u to bring back the commands you just yanked.
Thanks for the awesome tips in the video!
Instead of c matrix you should use t matrix... It looks much nicer and uses the backwards characters as well
Ответитьgreat tools you show here and great that the community is adding their more than 2 cents. I like aliases, because I can nest an alias within an alias without ever calling it, and its also a pit fall of naming aliases...config push origin HEAD:master
cps -f origin master
these 2 commands let me reset my git bare repo to a new system, where config is '/usr/bin/git --git-dir=$HOME/bare/ --work-tree=$HOME', and then cps is config push, and this right here is where I used config as a previous alias in a new alias.
I think it would be awesome if you could put your videos up on odysee.
ОтветитьDeja Vu
ОтветитьSo, after all, he did not have to say "sudo make me a sandwich", but just "sudo!!".
ОтветитьBest Linux tutorials I ever had. I wish i found it 8 years ago :D So much time was used unprodactive
Ответитьnice
Ответитьripgrep is quite useful. The only problem that it is written in rust. So not supported on arm
ОтветитьThanks dude! You're an amazing guide.
Ответитьvi session cntrl-z followed by fg........now that is useful. Howd'I not know that arleady?
RE> truncate -s 0 hello.txt
...you can also `cat /dev/null > hello.txt` both of which leave the file pointer as is.
Very useful! Thank you very much
ОтветитьVery useful and interesting thanks
ОтветитьSomething I never realised until recently, when I thought about implementing this myself, was that cp and mv have a -t option to specify the target folder. If you want to copy folder1 into folder0, you would often do
$ cp -r folder1 folder 0
now there is a source of potential accidents if doing this yourself: you start typing a long cp command
$ cp -r folder1 folder2 folder3 folder4
and before tying the final folder0, you accidentally hit enter and folder1..3 get copied into folder4.
By specifying the target folder first, via
$ cp -t folder0 folder1 folder2 folder3
this kind of keyboard slip can't cause problems in the same way. This also ensures that the target is definitely a directory, so avoiding the accident where you mistakenly copy one file over another. I wish I knew about this a long time ago, and in writing bash scripts I've often written crude snippets to approximate this behaviour.
This works with both cp and mv.
Thank you for these Tips. I am using Ubuntu, and I could not use Ctrl + Shift + +, to increase the font size, it doesn't take, is there another way to do it?
ОтветитьI've been working with linux for more than 15 years now, but I still learned a lot from this, thx
ОтветитьI've been a Fedora man since the days of Redhat 2 & 3, when you had several CD's for the install. Primarily as a revolt against the Bill Gateans. Though my hangup was with the GUI and never really got proficient on the command-line, and only using it when I absolutely had too. And then often with difficulty.
However now that I am building my own home network (5 units, so far...) including a Xeon server with 3 drives and raid, I am taking a more sincere approach to, and interest in, the command-line. Thus my presence here to catch your videos. So, thank you very much. I will be watching a lot more as time goes on, and yes... I DID subscribe.
Genial amigo, espero sigas trayendo mas trucos y comando en el terminal.
Ответитьcd by itself generally takes you to $HOME, so cd ~ is redundant.
ОтветитьGreat content. I learned a lot. Thanks for making this video.
ОтветитьCtrl+D is a very handy keyboard shortcut, used instead of the EXIT command, and also close the terminal window.
ОтветитьPerfect!!
ОтветитьHello Sir, I am a noob system administrator and this helped a lot ❤️
ОтветитьIn most terminals: CTRL-SHIFT-C to copy, CTRL-SHIFT-V to past.
It is annoying, but makes sense. CTRL-C is "COPY" in desktop applications. But it is the kill-process in the terminal.
I didn't know about 'column'. That's handy — especially in the specific example you gave. 'mount' is incredibly noisy (I usually use grep to filter).
Ответитьcd --
Ответитьto know which directory you actually are in, type "pwd"
Ответитьthank you for these great tips. I also want to mention the "| more" command to view at long outputs in the CLI running over multiple terminal heights.
You type your listing command or cat or whatever and add "| more" at the end f the command. The output starts with its first screen and stops for you to read. Then you resume the output with the space key. At the end of the list you leave that mode with a "q" command for 'quit'.
What is the command to check the memory usage of server at a particular time?
Ответитьset cmatrix screen saver with -b -a -u 3 .. so much better
Ответить