Tag Archives: files

Use memorized arguments for long commands

You want to apply two different commands on the same file or directory. You don’t have to type the path all over again. Use it like this:cat /home/user/Downloads/folder1/folder2/file.txtrm $_ In this case, rm $_ is the same as typing rm /home/user/Downloads/folder1/folder2/file.txt . This can sometimes save you a lot of time.

Find all world-writable files

If you are an administrator and have users on your server, keeping files with limited permissions should be a priority. To seek out all world-writable files on your machine, do a simple find / -perm -2 ! -type l -ls