https://github.com/no-src/pwd
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/no-src/pwd
- Owner: no-src
- License: apache-2.0
- Created: 2023-06-02T06:19:36.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-11-25T01:37:53.000Z (7 months ago)
- Last Synced: 2025-11-28T11:52:52.209Z (7 months ago)
- Language: Go
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pwd
Print the current directory.
## Installation
The first need [Go](https://go.dev/doc/install) installed, then you can use the below
command to install `pwd`.
```bash
go install github.com/no-src/pwd@latest
```
Or manually compile and reduce the size of the program.
```bash
mkdir -p $GOPATH/src/github.com/no-src
cd $GOPATH/src/github.com/no-src
git clone https://github.com/no-src/pwd.git
cd pwd
go build -ldflags="-s -w"
wget https://github.com/upx/upx/releases/download/v4.0.2/upx-4.0.2-amd64_linux.tar.xz
tar -xvf upx-4.0.2-amd64_linux.tar.xz
./upx-4.0.2-amd64_linux/upx pwd
```