POWERSHELL 50
Command.txt Guest on 12th May 2020 10:34:18 AM
  1. rm -rf foo
  2.  
  3. -- Shell Script --
  4. sh *.sh
  5.  
  6. -- File Size --
  7. du -h
  8.  
  9. -- Matlab -
  10. imagesc(importdata('filename.dat'))
  11. colorbar
  12. saveas(gcf,'filename.jpg')
  13.  
  14. -- Print --
  15. lpr -P hp3800_824 -o InputSlot=Tray2 -o Resolution=600dpi -o PageSize=A4 -o Duplex=DuplexNoTumble
  16. lpr -P black-1111 -o InputSlot=Tray_2 -o OutputBin=PrinterDefault -o Resolution=600x600dpi -o PageSize=A4 -o Duplex=DuplexNoTumble
  17.  
  18. --latex--
  19. latex *.tex
  20. dvipdf *.dvi
  21. http://www.tlhiv.org/ltxpreview/
  22. http://math1.math.ncku.edu.tw/MathForum/viewtopic.php?f=14&p=184
  23.  
  24. --disk--
  25. /sma/hilo/posheng
  26. @cp1:/arrays/igloo1/posheng
  27. @kona:/arrays/mhda/posheng
  28.  
  29. --find--
  30. find ./ -name "*.*"
  31. grep * ./
  32.  
  33. --bash--
  34. vi ~/.bash_profile
  35.  export PATH=$HOME/bin
  36.  export LD_LIBRARY_PATH=$HOME/lib
  37. source ~/.bash_profile
  38.  
  39. --sudo--
  40. su -
  41. visudo
  42.  add a line after "root ALL=(ALL)       ALL":
  43.  username       localhost=(ALL) ALL
  44.  
  45. --gzip--
  46. gzip -d foo.gz
  47. tar xvf foo.tar
  48.  
  49. --print--
  50. lpr -P color-1220 -o InputSlot=Tray2 -o PageSize=A4 -o Duplex=DuplexNoTumble
  51.  
  52. --curses--
  53. #include <surses.h>
  54. initscr();
  55. noecho();
  56. getch();
  57. endwind();
  58. -lcurses
  59.  
  60. --change mod--
  61. chmod *** filename
  62. *owner = rwx = 4+2+1 = 7
  63. *group = rwx = 4+2+1 = 7
  64. *others= --- = 0+0+0 = 0
  65. chmod a+r filename
  66.  
  67. --HDFimplot--
  68. HDFimplot in=hdf016aa sub=1 fm=1 box=2 p=3 Range=2,6
  69.  
  70. --feiling--
  71. erase
  72. hdfdata -f density=hdf008aa var=T fm=1
  73. image density
  74. header gl gl
  75. limits x1 x2 y1 y2
  76. squarebox
  77. box
  78. palette 2
  79. halftone 2 7
  80. contour
  81. wedge R 0 3
  82.  
  83. --velplotcm--
  84.                    region
  85. emis_COv3 hdf000aa 0 1 2 0.1
  86.                        6 0.5
  87. emis_H2v1          0 1 0.1
  88.                        0.5
  89.                      fgh
  90. velplotcm in=1CO2-1.wip lg=1
  91. velplotcm in=1CO2-1.map30 cut=0,0,90 task=doposvel
  92.  
  93. --Xserver--
  94. setenv DISPLAY 140.112.248.28:0.0
  95. vitual ip: SSH -> X11 -> enable x11 -> enter "localhost:0"
  96.  
  97. --MAC--
  98. vi /etc/sysconfig/network-scripts/ifcfg-eth0

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.