bahmanm@lemmy.ml to Linux@lemmy.mlEnglish · 3 months agoMy fellow software engineer, It's the year 2024...mastodon.socialexternal-linkmessage-square122fedilinkarrow-up1290arrow-down117file-text
arrow-up1273arrow-down1external-linkMy fellow software engineer, It's the year 2024...mastodon.socialbahmanm@lemmy.ml to Linux@lemmy.mlEnglish · 3 months agomessage-square122fedilinkfile-text
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up14·3 months agoHere is a more concise way to achieve the same thing: ls -ACd ~/.??*/ | sed -e "s#$HOME/##g"
minus-squarepalordrolap@kbin.runlinkfedilinkarrow-up5·edit-23 months agoI think that can be boiled down to only cd; echo .*/ Maybe throw a ;cd - on the end if the change of directory is unwanted.
minus-squareComicSads@lemmy.blahaj.zonelinkfedilinkarrow-up2·3 months agoif you need to preserve cd - you might be able to do this with pushd and popd
minus-squareSamueru@lemmy.mllinkfedilinkarrow-up2·3 months agols -A | grep "^\." I had to make a dummy .dotfile to test because I don’t have hidden files in my home.
Here is a more concise way to achieve the same thing:
ls -ACd ~/.??*/ | sed -e "s#$HOME/##g"
I think that can be boiled down to only
cd; echo .*/
Maybe throw a
;cd -
on the end if the change of directory is unwanted.if you need to preserve
cd -
you might be able to do this withpushd
andpopd
ls -A | grep "^\."
I had to make a dummy
.dotfile
to test because I don’t have hidden files in my home.