Monday = college exam. There can supposedly be 6 different ways to get to your home directory. These are the ones I get:
% cd
% cd .. (if you're one under it)
But I'm blanking out on the rest. I know at least two of them involved this character (~). Please help, it's a guaranteed test question. That's what I get for sleeping. College is no place for a 31 year old man![]()
+ Reply to Thread
Results 1 to 6 of 6
-
-
if you have to take a test ... be good to learn them yourself...
also i just checked and they are all listed on google ..
here is a nice little start for you anyway http://www.allcommands.org/linux%20commands%20list.html -
Personally, I always like to use
Code:cd `awk -F':' "/^\`whoami\`:/ {print \\$6;}" < /etc/passwd`
-
Originally Posted by sterno
Dude... You cost me a perfect score with that BS!
j/k... thanks for the help gang. -
How about
Code:eval `egrep "^\`whoami\`:" /etc/passwd | cut -f6 -d: | sed 's/^/cd /'`
Similar Threads
-
How to create an ISO image file from a disc under UNIX.
By valeyard1492 in forum LinuxReplies: 11Last Post: 11th Sep 2009, 19:11 -
High-Resolution VCD/SVCD Stills on the UNIX Command Line
By sterno in forum User guidesReplies: 7Last Post: 20th May 2009, 12:16 -
Cutting video to several parts without encoding (on Unix system)
By Doctor_X3 in forum EditingReplies: 0Last Post: 23rd Feb 2008, 14:23