Problem: To zip a file on linux we can use utility like gzip
Solution: gzip -c trace.txt > trace.gz
The above command will compress the file trace.txt
Solution: gzip -c trace.txt > trace.gz
The above command will compress the file trace.txt
[root@mydesktop build]# echo $PS1 [\u@\h \W]\$To change value:
[root@mydesktop build]#export PS1='[\u@dragon \W]\$' [root@dragon build]#
[root@dragon ~]#cat .bashrc
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export PS1='[\u@dragon \W]\$'
[root@dragon ~]# mysqladmin -u root password root