All 썸네일형 리스트형 File remove except the last five files ]$ ls -t | tail -n +6 | xargs rm -rfwith Removed list]$ ls -t | tail -n +6 && ls -t | tail -n +6 | xargs rm -rf 더보기 Get linux history of all users Formal Commandgetent passwd | cut -d : -f 6 | sed 's:$:/.bash_history:' | xargs -d '\n' grep -s -H -e "{{pattern}}" Easy Command for same location of all users home directorygrep -e "{{pattern}}" /home/*/.bash_history 더보기 [MySQL] Create DB & Grant CREATE DATABASE [IF NOT EXISTS] [db_name] GRANT ALL PRIVILEGES ON [db_name].* TO [user_Id]@localhost IDENTIFIED BY '[password]' PS) 계정 추가GRANT USAGE ON *.* TO [user_id]@localhost IDENTIFIED BY "[password]"; 더보기 이전 1 2 다음