Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-20-2019, 04:36 AM   #16
Registered: Dec 2011
Distribution: Mageia, Slackware
Posts: 847
Blog Entries: 8

Rep: Reputation: 208Reputation: 208Reputation: 208

Originally Posted by ash997 View Post
user1 is the user
aslo what is the command I put in the beginning?
would it look like this Mkdir /home/user1 >/tmp/text 2>&1
Why do you want to pipe the output to /tmp?
You can pipe things anywhere you want.

But yes, thats how to do it, except..
command 2>&1 | tee /folder/folder/filename
Anyways, if you need more info, have a look into "how to pipe output" and "stdout" & "stderr". You can do it many different ways, the above is just my generally preferred method, as I can also see the output, not just redirect the pipe. You are specifically looking for stderr.

Last edited by zeebra; 02-20-2019 at 04:41 AM.


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] Sub-Directories not picking up correct group permissions for new files/directories JockVSJock Linux - Newbie 4 05-07-2017 11:52 AM
[SOLVED] How to remove all hidden directories and folders, and only hidden directories and folders rm_-rf_windows Linux - General 5 04-12-2016 08:28 AM
How to store files/directories in different different directories!! anishkumarv Linux - Newbie 7 03-23-2011 06:26 PM
Copying files and sub-directories of a directory except the directories named ".abc" sri1025 Linux - General 2 08-24-2010 09:53 AM
CHMOD directories.sub-directories.files zerojosh Linux - Software 2 11-19-2005 04:22 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:26 PM.

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