Posts Tagged / useful commands

I’ve previously written about Screen in Stupid Must Knows – Screen. Screen is not only useful when working with a poor connection, but also if you want to toggle or copy between multiple screens on the same remote server. Instead of ssh-ing into two different terminals and using a mouse to copy back and forth,

5 useful R commands for working with big data 1. View a large object (big RData file called object for example) in a manner similar to less in command line. page(object, method=”print”) 2. Listing top n objects in memory. rev(sort(sapply(ls(envir=globalenv()), function(x) { object.size(get(x,env=globalenv())) })))[1:n] 3. Remove all objects except for those contained in a set

10 useful command line editing commands: C is Control. M is Meta or Option on Mac (assuming you have gone to Preferences -> Settings -> Keyboard and turned on “Use option as meta key”). Move to the start of the line: C-a Move to the end of the line: C-e Move forward a word: M-f