Helpful ubuntu terminal commands

Listing only directories in the current path

ls -d */ # use -C to sort the files

Add lines to the end of a text file

echo "some text" >> output-file.txt

Finding files in current directory.

find -name "random-name*" # This lists the matching files and their paths

find -name "random-nae*" | wc -l #lists number of results through wc

List all aliases and their definitions

alias or which [keyword]

End of story