LinuxQuestions.org
Help answer threads with 0 replies.
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-16-2017, 03:16 AM   #16
liman
LQ Newbie
 
Registered: Oct 2017
Distribution: CentOS 7.4
Posts: 8

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by !!! View Post
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

less !$
I was busy last days...

for diff directories and !$


Can you please explain in details how exactly this
Code:
eval $'\x77' ;echo \#I hope you tried:; >w w;<w cat;rm w
work? Step by step please.

I didn't know that "eval $'\x77'" is the same like "w" command, I thought that $'\x77' is an environmental variable, but I cannot find it anywhere within printenv output.

What is \x77 ?

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

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Oooops, sorry, I got toooo 'obfuscated' here
Semi-beyond what I know; I'm learning 'stuff' here too!!!

https://explainshell.com/explain?cmd...3Cw+cat%3Brm+w

\x77 is the ascii for w

Try this (1 cmd per line instead ok): >ls ls ; <ls cat ; rm ls

Now, it's your turn to teach me something!!!
 
Old 11-17-2017, 07:24 PM   #18
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010
I made a piece of toast with linux today.
 
Old 11-18-2017, 12:46 AM   #19
liman
LQ Newbie
 
Registered: Oct 2017
Distribution: CentOS 7.4
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by !!! View Post
Oooops, sorry, I got toooo 'obfuscated' here
Semi-beyond what I know; I'm learning 'stuff' here too!!!

https://explainshell.com/explain?cmd...3Cw+cat%3Brm+w

\x77 is the ascii for w

Try this (1 cmd per line instead ok): >ls ls ; <ls cat ; rm ls

Now, it's your turn to teach me something!!!
I really didn't know that you can change positions here ">ls ls" and that everything will stay the same. So, this ">ls ls" is completely the same as this "ls >ls".
I always thought that this part ">ls" must be at the end. Explainshell.com is great, very useful. I didn't know about that site before, thanks for link.
Putting commands line by line I succeeded to figure out what those commands do .



Quote:
Originally Posted by AwesomeMachine View Post
I made a piece of toast with linux today.
Linux is everywhere.
 
Old 11-18-2017, 01:01 AM   #20
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 759

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Quote:
Originally Posted by AwesomeMachine View Post
I made a piece of toast with linux today.
Does your toaster have UEFI? Wait: BSD isn't Linx!!!

Quote:
Originally Posted by Habitual View Post
So, ...You need [to] Turn in your toaster.
https://ubuntuforums.org/archive/ind...t-1452861.html
If, when you boarded a plane, you were handed: a seat, four bolts, a wrench and a copy of the seat-HOWTO, would you fly? Or go back to just watching thru Windows?

Last edited by !!!; 11-18-2017 at 01:35 AM.
 
Old 11-18-2017, 01:17 AM   #21
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010
It's a 'smart' toaster.
 
Old 11-18-2017, 05:58 AM   #22
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 1,772

Rep: Reputation: 798Reputation: 798Reputation: 798Reputation: 798Reputation: 798Reputation: 798Reputation: 798
Quote:
Originally Posted by liman View Post
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 .
Also there is Ctrl-Z that pauses the current foreground command and gives control to the shell. Works fine with vi/vim.
To continue the paused command type command fg.
Some commands (but not interactive ones like vi/vim!) can be continued in the background, then type bg.
Note that vim -Z or rvim starts vim in restricted mode: all shell escapes are denied. This is very useful in cnnection with sudo.

Last edited by MadeInGermany; 11-18-2017 at 06:00 AM.
 
Old 11-23-2017, 01:42 PM   #23
liman
LQ Newbie
 
Registered: Oct 2017
Distribution: CentOS 7.4
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by MadeInGermany View Post
Also there is Ctrl-Z that pauses the current foreground command and gives control to the shell. Works fine with vi/vim.
To continue the paused command type command fg.
Some commands (but not interactive ones like vi/vim!) can be continued in the background, then type bg.
Note that vim -Z or rvim starts vim in restricted mode: all shell escapes are denied. This is very useful in cnnection with sudo.
Many thanks for this. This is even maybe faster then :! some-command. I will for sure start to use this.

All of you guys I wanted to ask if you have interest to join my skype Linux group. I'm not sure if I'm allowed to post my group link here?

If you have interest to chat about linux in general, linux commands, and so on, please send me a PM.

There are times when we are not able to type (car driving, walking, ...), but we could use voice messages instead. In that way we could use "unusable" times (walking, driving, etc) and make them useful -learning about linux.

Any of you interested to talk about linux via skype messenger? If yes, please send me a PM so I can give you the group link.

Edit:
I'm not able to find a way how to send a PM to some forum member. Please let me know how to do it.

Last edited by liman; 11-23-2017 at 05:40 PM.
 
Old 11-24-2017, 03:13 AM   #24
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 759

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
PM isn't enabled until an LQ Member reaches 150 posts, sorry.
But 'we' (>150posts) can email you (but you <150posts can't *initiate* an email to 'us')
(note that IF I email you, you will receive my actual email address, which I rarely read!!!)

A better idea is (IF you can spare $5): $contribute (link at very bottom of every page)
Quote:
Private messaging will be enabled
 
  


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 12:30 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