Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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 .
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?
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.
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.
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.