LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2017, 02:51 PM   #1
liman
LQ Newbie
 
Registered: Oct 2017
Distribution: CentOS 7.4
Posts: 8

Rep: Reputation: Disabled
I am the best linux guy -learnt today


Yes, that's right, I'm the best linux guy. Just kidding .
Intention of this thread is to encourage newbies to start/continue linux learning posting about their recent linux discoveries/achievements.

Write your linux impressions here, new knowledge about linux, what you learned today, etc.
A great chance to boast about your linux knowledge .

It is also great opportunity to be verified by other members whether you learned something correct way.


So, my next post will be about what I learned today, of course related to linux .

Don't forget to start a post with "I'm the best linux guy" .

Last edited by liman; 11-03-2017 at 02:53 PM.
 
Old 11-03-2017, 02:54 PM   #2
liman
LQ Newbie
 
Registered: Oct 2017
Distribution: CentOS 7.4
Posts: 8

Original Poster
Rep: Reputation: Disabled
I learned today:

!ssh: p ---without space between !ssh: and p -if I put : and p together I get this ---
This command searches for the most recent command (in history) that starts with ssh and prints it without executing it.
Also it becomes the last used command so you can invoke it using up arrow key.
For immediate execution don't use : p just !ssh

^ls^cd
Replaces ls part of the last command with cd.
If your last command was 'ls /etc/systemd/system', after using ^ls^cd you will get this command 'cd /etc/systemd/system' executed.
This is very useful if the last command is very long and you just need to replace few characters.

hostname -i
Whit this command you get IP address related to host.
Very clean short information, useful when you have a lot of interfaces.

hostname -I
You get all IPs on host.

Sharing your knowledge others have opportunity to learn something new.

Last edited by liman; 11-03-2017 at 03:10 PM.
 
Old 11-03-2017, 03:20 PM   #3
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 759

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
*I* am THE VERY BEST Unic it: my 1exe Lnux does RPN!!!

No, I am!!! Welcome to LQ, where it's fun!!!

My distro has only one executable (busybox), does 'RPN' like:
Code:
>w w;<w cat     #mll   doesn't w, so I use ls
And, for a realistic level of security, has no /etc/passwd !!!

Last edited by !!!; 11-05-2017 at 03:11 AM.
 
Old 11-03-2017, 03:44 PM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,869

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
Quote:
Originally Posted by liman View Post
...
Sharing your knowledge others have opportunity to learn something new.
I think you'll find that's the whole point behind this site.
Maybe you should change the title of the thread to say "What did you learn on Linux today?" (or something similar) and ask for it to be sticky'd?
 
Old 11-04-2017, 04:47 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249
^ no no, i like the thread title! it made me click & look!
 
Old 11-05-2017, 02:04 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 5,677

Rep: Reputation: 2244Reputation: 2244Reputation: 2244Reputation: 2244Reputation: 2244Reputation: 2244Reputation: 2244Reputation: 2244Reputation: 2244Reputation: 2244Reputation: 2244
Quote:
!ssh: p ---without space between !ssh: and p -if I put : and p together I get this

The parsing can be avoided by using [noparse][/noparse] tags around individual elements in a post, or everywhere in a post by selecting the "Disable smilies in text" option in the Advanced editor.
 
Old 11-05-2017, 02:20 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249
^ in this case (terminal commands) the best way to avoid parsing is using code tags.
 
Old 11-06-2017, 03:10 AM   #8
liman
LQ Newbie
 
Registered: Oct 2017
Distribution: CentOS 7.4
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by !!! View Post
No, I am!!! Welcome to LQ, where it's fun!!!
Thanks.
Your red capital I really made me laugh .

Quote:
Originally Posted by ondoho View Post
^ no no, i like the thread title! it made me click & look!
I think jsbjsb001's "What did you learn on Linux today?" title suggestion is pretty good but also I agree with ondoho -original title is pretty eye catching .

Quote:
Originally Posted by ondoho View Post
My distro has only one executable (busybox), does 'RPN' like:
I didn't understand this part "does 'RPN' like", what is RPN?
It's funny to me now, but when I first time faced busybox on (I'm not sure, I think on) XFCE I wanted to reinstall my distro, I thought there were something wrong during installation .
Thanks google I read that it is normally to not having bars and menus -just right click on desktop to get busybox menu .
 
Old 11-06-2017, 06:44 AM   #9
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,216
Blog Entries: 2

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Quote:
Originally Posted by liman View Post
Thanks google I read that it is normally to not having bars and menus -just right click on desktop to get busybox menu .
I think you mean openbox, right? that's my favorite window manager. You can also scroll the middle mouse button to switch workspaces. click mmb to get minimized apps. I like to add add tint2 for taskbar and feh or nitrogen for background.
 
Old 11-06-2017, 07:16 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,637

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
RPN - Reverse Polish Notation.

https://en.wikipedia.org/wiki/Reverse_Polish_notation
 
Old 11-06-2017, 07:54 AM   #11
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,240
Blog Entries: 4

Rep: Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265
Quote:
Originally Posted by michaelk View Post
You'll pry my HP-16C calculator out of my cold, dead fingers. (And then I'll haunt you for doing so.)
 
Old 11-06-2017, 07:58 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,637

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
I have a HP-41...
 
Old 11-06-2017, 09:35 AM   #13
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,869

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
Quote:
Originally Posted by sundialsvcs View Post
You'll pry my HP-16C calculator out of my cold, dead fingers. (And then I'll haunt you for doing so.)
Quote:
Originally Posted by michaelk View Post
I have a HP-41...
I have none.

But anyway's I just learnt from installing Fedora that, trying to get WinFF installed though packages, is not as easy as you would think. I had to install it from openSUSE's Fedora package.

But it works!

https://software.opensuse.org/package/winff
 
Old 11-07-2017, 01:37 PM   #14
liman
LQ Newbie
 
Registered: Oct 2017
Distribution: CentOS 7.4
Posts: 8

Original Poster
Rep: Reputation: Disabled
Learned today:

execute commands inside vi editor
:! ls -la ./

Inside vi editor you can execute commands just preceding them with :!
ls -la ./ -is just example, i think you can use any command you want, someone can correct me.

I'm just interested how many of you knew this .
 
1 members found this post helpful.
Old 11-08-2017, 01:58 AM   #15
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 759

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
LQ's SIX-emoji limit makes it impossible for ME to fully express MYself!!!

diff the output of two commands (without creating a temporary file):

diff <(ls dir1) <(ls dir2)

Code:
eval $'\x77' ;echo \#I hope you tried:; >w w;<w cat;rm w
Google's intitle: (DDG t: ) and other tricks. I get carried-away web-researching:
https://unix.stackexchange.com/quest...s-or-tricks/67
https://stackoverflow.com/questions/...ick-using-bash
https://news.ycombinator.com/item?id=7981633 ...


Edit(append today's): I saw "argparse" .
locate argprase
<uparrow>.txt
ls -l `!!`
less !$
with `!!` & connochaetos14.2 (since LQ=Slack*) ;shake;

Last edited by !!!; 11-08-2017 at 11:20 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] (INFO) Something I just learnt about reading a file grail Linux - Newbie 9 04-26-2012 11:56 PM
FTP in UBUNTU is diff what i learnt in my Redhat Enterprise flavour rajasekhar19489 Ubuntu 3 10-20-2010 05:42 AM
LXer: Microsoft drops Family Guy like a hot deaf guy joke LXer Syndicated Linux News 3 10-28-2009 11:23 AM
LXer: Linux Guy and Windows Guy Walk a Mile in Each Other's Shoes LXer Syndicated Linux News 0 01-13-2009 05:40 PM
getting updates today is IMPOSSIBLE (today)!! mtdew3q SUSE / openSUSE 3 10-17-2007 12:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration