A lock device includes a lock head, a lock case, a cap, and a lock shaft unit. The lock head is inserted into the lock case. The lock case is provided with an anti-dust cover which is rotatable with respect to the cap. The lock shaft unit is pivotally connected to the lock case, allowing the lock shaft unit to rotate in 360 degrees with respect to the lock case.