8000 Linux · euccas/expmap Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Euccas Chen edited this page Mar 27, 2018 · 5 revisions

Useful commandline

List recently touched files and directories

ls -altr

List files and sort by size

ls -lS

Avoid wired characters in ls output (when redirecting to a file)

My answer on StackOverflow

The weird characters such as ^[[00m are escape characters for colorizing the output. Color output for ls is most likely enabled through an alias in your environment.

To avoid getting these color characters, you can try disable the ls alias temporarily with a backslash:

\ls *.txt

Or you can use printf command instead.

printf "%s\n" *.txt

LSF Common Commands

  • bsub - Submit jobs
bsub sleep 100
  • bjobs - Display job details
bjobs -l <jobid>    # show current status of your job
bjobs -lp <jobid>
bjobs -a            # display current and recently finished jobs
bjobs -u username -l    # display all jobs for user "username" in the detailed long format  
  • bacct - Display accounting statistics
bacct -l <jobid>    # display job statistics, including MEM, SWAP, CPU_T, etc.
Clone this wiki locally
0