Introduction
Introduction Statistics Contact Development Disclaimer Help
Post AmH0aM8ugj9nyNOrgG by [email protected]
More posts by [email protected]
Post #AmGx28E7caM76YpE9I by [email protected]
0 likes, 1 repeats
Quiz: How do you print the value of the $PWD shell variable in #Linux or #Unix?…
Post #AmGxFBxT3kK0RTGMe8 by [email protected]
0 likes, 0 repeats
@nixCraft why not just $pwd? :P
Post #AmGxFfnE8NxIyOhbqi by [email protected]
0 likes, 0 repeats
@nixCraft I mean they all work, but 'echo "$PWD"' is the most…
Post #AmGxJMbRQNb0c9wvlw by [email protected]
0 likes, 0 repeats
@nixCraft printenv PWD
Post #AmGxKDFdgAeDtt9leC by [email protected]
0 likes, 0 repeats
@nixCraft .
Post #AmGxodyWstBTTGfFSa by [email protected]
0 likes, 0 repeats
@nixCraft echo for me, but how about >env |grep PWD ?
Post #AmGxs0UzbAk2CBS6wC by [email protected]
0 likes, 0 repeats
@nixCraft sometimes I use $PWD<TAB>
Post #AmGyOYntaavFrBohZQ by [email protected]
0 likes, 0 repeats
@nixCraft export PS1='\w \$'
Post #AmGycXDiH28V02YY2i by [email protected]
0 likes, 0 repeats
@nixCraft I took the awk solution just becaue I love awk.
Post #AmGzLkrKPYJmKbeGRc by [email protected]
0 likes, 0 repeats
@nixCraft 'pwd' is shorter. For any other var I'd use echo
Post #AmGzb4v46rmStIhfA8 by [email protected]
0 likes, 0 repeats
@nixCraftI like that first one. Gratuitous use of `awk` is always welcome.
Post #AmH08AvimdZH5YnA4e by [email protected]
0 likes, 0 repeats
@nixCraft just call 'pwd'?
Post #AmH0aM8ugj9nyNOrgG by [email protected]
0 likes, 0 repeats
@nixCraft not sure why you wrote "choose one answer only". That's…
Post #AmH0dV7DmgfYfb6lcG by [email protected]
0 likes, 0 repeats
@nixCraftVoted for printf, just to gratify my inner C snob (that doesn't ac…
Post #AmH112yW3rDELOGQkK by [email protected]
0 likes, 0 repeats
@nixCraft pwd
Post #AmH2SVQcTr1qMa4BWq by [email protected]
0 likes, 0 repeats
@nixCraft tth@redlady:/tmp$ pwd/tmptth@redlady:/tmp$ type pwdpwd is a shell bui…
Post #AmH3QnDlSNnevAnhSK by [email protected]
0 likes, 0 repeats
@nixCraft The second one only works if you use bash, so not recommended in scri…
Post #AmH5WyPswe8tHzXqNs by [email protected]
0 likes, 0 repeats
@nixCraft just use pwd -L as it is available on BSD, AIX, SCO and the great maj…
Post #AmH5c5ZPm77YvLRQkS by [email protected]
0 likes, 0 repeats
@nixCraft Usually I just dof=$(mktemp) ; printf '#include <stdio.h>\n…
Post #AmHE68O6fAKzz1zQie by [email protected]
0 likes, 1 repeats
@nixCraft Which way is the correct way?
Post #AmHEE35IGU25qrxq40 by [email protected]
0 likes, 1 repeats
@ellestad @nixCraft pwd is a command that works everywhere I've tried it. …
Post #AmHFpvikBuldyK2mDg by [email protected]
0 likes, 0 repeats
@nixCraft cat /proc/cwdYou can not trust ENVIRONMENTThere are issues with geten…
Post #AmHGSsnWzYY0CVrCT2 by [email protected]
0 likes, 0 repeats
@nixCraft echo $env:PWDbecause PowerShellwhich is a shell too.
Post #AmHGXDvIOHaqsUYhPs by [email protected]
0 likes, 0 repeats
@nixCraft why not use python?
Post #AmHQXIyQc0Rg5EhYIq by [email protected]
0 likes, 0 repeats
@nixCraft wait is this a trick question? Where did just typing `pwd` go
Post #AmHSlwojTGHZcQHBc8 by [email protected]
0 likes, 1 repeats
@nixCraft None of the above.echo ${PWD}
Post #AmHh214snTX4p9O2bI by [email protected]
0 likes, 0 repeats
@nixCraft hmm. Never thought of echoing it. I always use the pwd command.If nee…
Post #AmI8rcS8IKvwGu5mrI by [email protected]
0 likes, 0 repeats
@nixCraft «pwd» ftw
Post #AmIabgsMsZuy4aYZeK by [email protected]
0 likes, 0 repeats
@nixCraft echo in a shell but voted printf because in scripts and coding it&#39…
Post #AmN2ncyem50Co0on8S by [email protected]
0 likes, 0 repeats
@nixCraft PWD is the ghost in the shell and is exposed by many ways to those th…
Post #AmN3Esnm30Svheixns by [email protected]
0 likes, 0 repeats
@nixCraft realpath .
Post #AmN5Rb8PFFGCa9Z7j6 by [email protected]
0 likes, 0 repeats
@nixCraft Honestly, TIL $PWD is even a thing.
Post #AmN5Udyh86nCGlTXKS by [email protected]
0 likes, 0 repeats
Using the command "pwd" @nixCraft 🤷‍♂️
Post #AmN6wsIdZkbMkXpS3U by [email protected]
0 likes, 0 repeats
@nixCraft env| grep PWD?
Post #AmN7dQwDBJi8LCdIzA by [email protected]
0 likes, 0 repeats
@nixCraft I selected the awk command, but as a linux genius, I would have passe…
Post #AmNCrz9PH8PEH7YyBc by [email protected]
0 likes, 0 repeats
@nixCraft echo "PWD" | python3 -c 'import subprocess,sys; var = s…
Post #AmNcGXctFHH30G9xTM by [email protected]
0 likes, 0 repeats
@malte70 😈
You are viewing proxied material from pleroma.anduin.net. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.