LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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


Closed Thread
  Search this Thread
Old 04-03-2015, 06:31 PM   #1
JulianMane
LQ Newbie
 
Registered: Apr 2015
Posts: 7

Rep: Reputation: Disabled
Question Another Question, Linux Pros, and noobs, take a crack.


to create a directory named sysadmin1/my_peeps/$DATE ,, am i to: echo sysadmin1/my_peeps/$DATE >> .bash_login ?? or do i: vi .bash_login and manually type the commands in there??,, i have the DATE variable already set. im looking for another way besides using mkdir.. thats my first question..

my real problem and second question is, how do i redirect the output of the w command to a file in my_peeps.. so, after that dir is created, do i do w > sysadmin1/my_peeps ??
 
Old 04-03-2015, 06:41 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
For the first part you can either echo or use vi both will get you the same result. For echo I always prefer putting double quotes like this:

Code:
echo "sysadmin1/my_peeps/$DATE" >> .bash_login
For the second part I am not sure what exactly you are looking for?
 
1 members found this post helpful.
Old 04-03-2015, 06:43 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Please keep your questions on this topic in one thread:
http://www.linuxquestions.org/questi...lp-4175538690/
 
1 members found this post helpful.
  


Closed Thread


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
Linux Pro's and Noobs! A Challenge, Please take a crack at this! (TIME SENSATIVE,) JulianMane Linux - Newbie 1 04-03-2015 06:05 PM
LXer: How to crack a wireless WEP key using AIR Crack LXer Syndicated Linux News 1 05-09-2010 08:59 AM
Noobs question kcals Programming 3 05-11-2006 04:16 AM
Noobs java question on applets probably easy...sorry in advance vdogvictor Programming 2 03-16-2004 12:58 PM


All times are GMT -5. The time now is 03:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration