what is the command+k ( in mac ) equivalent in ubuntu

Solution 1:

Clearing the screen

This will work for both Mac OS X and *nix:

Ctrl-l

My answer assumes the default terminal emulators for bash, tcsh (default for Mac OS X) or zsh.

Deleting the scrollback buffer (more like ⌘K)

This has been asked/answered elsewhere.

Solution 2:

^L - the equivalent to 'clear' command

I guess this is what you were searching for

Solution 3:

This is not a key chord, but if you want to clear your terminal and recover it if it gets hosed, you can use the 'reset' command. I know this works in linux and BSD, not sure about OSX.