Don't forget page




 Devuan printing
   lpstat -p -d    find printers
   lpoptions -d MFC9130CW    set as default
   lpq    to see if it is default
   lp /home/hd.txt    to print hd.txt

_____________________________________________________________________________

 
tmux 
   ctrl-b    
   "    horizontal split
   %    vertical split
   left/right arrow    switch right/left
   up/down arrow    switch up/down
   Alt+rightu+right arrow key    resize ?
   :    command mode
   d    detach
   c    create
   p or n    previous / next
   exit    
   w    choose session regardless of
    terminal session

_____________________________________________________________________________

_____________________________________________________________________________



_____________________________________________________________________________


_____________________________________________________________________________

_____________________________________________________________________________

_____________________________________________________________________________

______________________________________________________________________________


Mount, unmount, check disk for errors etc.

____________________________________________________________________________

Esc+i or Fn+i -----> insert on in VIM on MAC

To display Canvas border properly in IE10 had to add meta tag to force it to ie10


Apache restart etc

___________________________________________________________________________

__________________________________________________________________________


_________________________________________________________________________


_________________________________________________________________________

_________________________________________________________________________

    
    

_________________________________________________________________________

__________________________________________________________________________




>
 
 
   Add user    Adduser user-name
   Delete user    userdel user-name
   Set user password    passwd user-name
   Assign to group    usermod -G group1 group2 group3 user-name
   List groups user is assigned to    groups user-name
   Add to groups user is assigned to    usermod -a -G group-name user-name
       
   Assign to group    usermod -G primary-group,sambashare,sales,service,sarahh user-name
   Set Samba password    smbpasswd -a user-name
   List users     cut -d: -f1 /etc/passwd
   change ownership of the file to another group    chgrp group-name /1TBdisk2/sales/doc.txt
   Test smb.conf for errors    testparm
   Secure Copy    scp -rC user@192.168.1.23:/home/somedirectory/* /home/currentlocation/   
   Vim copy/paste    v, V - visual line y-copy p-paste
   service --status-all      + means running
     - means it is not
     ? no status provided by service
   Remove directory    rm -rf folder-name
   Truncate file    truncate some.log --size 0



Find Command
   find /user /home -name "*.txt" -type file
      in multiple directories /user and /home
   find / -name "*.log" -type f
   
   find / -mmin +0 -mmin -10 -name "*.log"
   
   find . -type f -name "badfile" -exec rm {} \;
      remove after find
   find / -name "*.gz"i -exec zgrep "myString" {} \;
       look for all gz files and find myString
   find . -name "*.html" -exec grep -l w3 {} \;
       look for string w3 in all html files in current directory
   find / -type f \(-name "*.html" -o -name "*.css"\)
   

__________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

PS Command
      ps -eo comm,etime,user | grep cp     
      ps -eo comm,etime,%cpu,user | grep 2345     
      ps -eo pid,cmd,%mem,%cpu,user --sort=-%mem | head     
      

Color values
Markup Validator 69.165.175.169