Update shell.cheat

This commit is contained in:
bajatin 2020-02-09 18:50:39 +05:30 committed by GitHub
parent 85e376f850
commit 820e382283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,9 +27,6 @@ killall <Process-name>
# Get the current path # Get the current path
pwd pwd
# Copy to clipboard
pwd | pbcopy
# Get the current hostname # Get the current hostname
hostname hostname
@ -48,13 +45,8 @@ exit
% Shell Permissions % Shell Permissions
# Use -R option to change permissions recursively. # Use -R option to change permissions recursively.
ps -ef | grep apache | grep -v grep ps -ef | grep apache | grep -v grep
# List
# Change permissions
chmod 755 <index>
# Change group # Change group
chgrp <group-name-from> <group-name-to> chgrp <group-name-from> <group-name-to>