Yes, it's just a matter of including8-bit wrote:Did you know that in a terminal, in X or outside of X you can interchange the use of "ls" (linux command) and "dir" (dos command)?
Is this to make windows converts comfortable?
Code: Select all
alias dir='ls'
I've also added to my .bashrc something to make it easier for working from the CLI: with a file manager, when you move to a directory, you immediately see which files are there, so I added
Code: Select all
function qq(){
cd "$1"
if [ -n "$2" ] ; then
ls *${2}
else
ls
fi
}
Code: Select all
# qq /tmp/
bootcnt.txt flashgot.r3y1skkw.slt modprobe.udev-debug xerrs.log
bootkernel.log geany_socket.43bd6348 oldmousedevice
bootsysinit.log hotpupfifo photos
boot-timing modprobes.log videos
# qq /tmp/ log
bootkernel.log bootsysinit.log modprobes.log xerrs.log
# pwd
/tmp
#
So with one short command you get to a directory and see its contents...