ls
example above, but there are many others you may find.ls
display in columns and with a file type indicator (end directories with ”/“, etc) by default:less
for viewing large directory listings with the long format:ls
and try some helpful commands for cd
.cd
part entirely by making an alias for ..
:du
output as well:free
output more human friendly:mkdir
command that we use often is the -p
flag to make any necessary parent directories. We can make this the default:-v
flag on top of that so we are told of every directory creation, which can help us recognize quickly if we had a typo which caused an accidental directory branch:wget
, in almost all circumstances, you’ll want to pass the -c
flag in order to continue the download in case of problems. We can set that with this:history
command’s output. This is sometimes more useful than using CTRL-R to reverse search because it gives you the command number to do more complex recalls afterwards:top
command with an enhanced version that is much easier on the eyes and can be sorted, searched, and scrolled without complications:ncdu
command can be downloaded which presents file and directory sizes in an interactive ncurses display that you can browse and use to perform simple file actions:df
as well that’s called pydf
. It provides colorized output and text-based usage bars. We can default to using this utility if we have it:sudo apt-get install imagemagick
if not already available) which contains a command called mogrify
that does just this. I have this command in my ~/.bashrc
file:sftp
to connect and automatically change to a specific directory:function
command and looks something like this:mkdir
command to auto change into the directory after creation:extract
function. This combines a lot of utilities to allow you to decompress just about any compressed file format. There are a number of variations, but this one comes from here: