Centos Cheat Sheet Cheat Sheet by Bromono Via Cheatography.Com/20940/Cs/3795

Centos Cheat Sheet Cheat Sheet by Bromono Via Cheatography.Com/20940/Cs/3795

CentOS Cheat Sheet Cheat Sheet by bromono via cheatography.com/20940/cs/3795/ Help Commands Partitions and Disk Management File Operations (cont) ls Options whatis df less View a file on page at a -a Show all (including hidden) time, allows for going Search whatis database for Report file system disk space -R Recursive list backwards complete words; used to find usage -r Reverse order short descrip​ tions of system head Print the first 10 lines of a mount commands file -t Sort by last modified Show whats mounted or mount Sort by file size which tail Print the last 10 lines of a -S a file system file Long listing format Shows the full path to shell -l unmou​ nt wc Count the number of commands -1 One file per line Unmount a file system words or characters in a where​ is file -m Comma-s​ epa​ rated output fuser Locate binary, source and man stat Display file of file system -Q Quoted output pages for a command Identifies processes using files status or sockets aprop​ os cut Remove sections from grep Options isof lines of input Search through a database of -i Case insensi​ tive search short descrip​ tion to find help list open files on the system paste Merge lines of files -r Recursive search and man pages containing -v Inverted search certain terms and commands Directory Operations Searching Files -o Show matched part of file only man clear clears your screen grep Search text files for lines Manual pages for commands containing a matching pwd Shows current directory Process Management pattern cd Change directo​ ries Report on current Bash Variables locate Find files by matching the ps ls List directory contents whole path name processes env List current mkdir Create a new directory find search for files in a pstree Display a tree of environ​ ment variables directory hierarchy processes rmdir Delete an empty directory echo Output value of $NAME top Show real time processes $NAME variable Commands to know File Operations kill Terminate a process by export set $NAME to value in uname Prints informa​ tion about PID NAME=​ enviroment cat Print a file on the screen, a machine and operating ​ value concate​ nate files killall Kill a process by name system it is run on set Change value of shell touch Create an empty file, pkill Look up or signal who Print who is currently atrributes and positional change file timestamps processes based on same logged in and other attributes parameters or display cp Copy directo​ ries or files list of shell variables uptime Prints system uptime and pgrep Grep for process mv Moves directo​ ries or files and functions load informa​ tion rm Removes directo​ ries or $PATH Exectuable search path sudo Execute a command as ctrl+z Stop the job but don't end files (This is how you another user, usually $HOME Home directory process remove recursi​ vely) with higher permiss​ ions $SHELL Current shell & Place this after a ln Creates a symbolic or shutd​ Bring the system down in command to put the hard link for a file own a safe way process in the background jobs Display all jobs By bromono Published 1st April, 2015. Sponsored by CrosswordCheats.com cheatography.com/bromono/ Last updated 1st April, 2015. Learn to solve cryptic crosswords! Page 1 of 2. http://crosswordcheats.com CentOS Cheat Sheet Cheat Sheet by bromono via cheatography.com/20940/cs/3795/ File Permiss​ ions Networking (cont) chmod 775 file ifdown Bring network interface down Change file permiss​ ions to 775 ping Send ICMP chmod -R 600 folder ECHO_RE​ QUEST to Recursi​ vely chmod folder to 600 network hosts chown user.gr​ oup file Accounts and Security Change file owner to user and group to Adminis​ tra​ tion group group​ add File Permission Numbers Create a new group First number is the owner permiss​ ion, group​ del second is group and third is every​ one Delete a group Calculate permission digits by adding group​ mod number below: Modify definition of a specified suid=4 421 421 421 group sgid=2 rwx rwx rwx usera​ dd flag=1 owner group world Create a new user example: cmod 777 /etc/​file​ .txt userd​ el Delete a user Networking Directo​ ries userm​ od /etc/​ sys​ con​ fig​ /ne​ two​ rk-​ scr​ ipts Modify a user account This folder contains the configu​ ration files for each interface on the system; passwd usually named ifcfg-eth0 or ifcfg-e​ th1. Update a user's password /etc/​ res​ olv​ .co​ nf vipw This file contains the permanent Domain Edit password, group, Name Server (DNS) settings shadow-​ pas​ sword (Updates etc/sha​ dow) Networking vigr ifcon​ Configure network interface Edit password, group, fig shadow-​ group (Updates route Show/Ma​ nip​ ulate the IP routing etc/gsh​ adow) table chage ip Show/Ma​ nip​ ulate routing, devices, Change password policy policy and tunnels; replaces ifconfig, arp, and route ifup Bring network interface up By bromono Published 1st April, 2015. Sponsored by CrosswordCheats.com cheatography.com/bromono/ Last updated 1st April, 2015. Learn to solve cryptic crosswords! Page 2 of 2. http://crosswordcheats.com.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us