An excavator includes a traveling body, an upper turning body rotatably provided on the traveling body, an attachment which has a boom, an arm, and a bucket and is attached to the upper turning body, and a controller configured to perform a control of a cylinder of at least one shaft of the attachment so as to suppress a vibration of the traveling body or the upper turning body, which is caused by an aerial operation of the attachment.