Categories
Linux

Useful Linux Commands

Yes, I know.  This is pretty thin.  But as I stumble through my infrequent tasks in Linux, I need to write down the little bits that I need to remember.  Feel free to chip in!

To Delete a Folder With Contents

[sourcecode language="bash"]
rm -rf {folder}
[/sourcecode]

Show full path of current dir in linux command prompt

[sourcecode language="shell"]
PS1="[\u@\h \w]\\$ "
[/sourcecode]

Categories
Linux

Showing the path in the Linux command prompt

[sourcecode language="php"]
# show full path of current dir in linux command prompt
PS1="[\u@\h \w]\\$ "
[/sourcecode]