What does the tilde (~) mean at the end of a filename?

What is the file with the ~ at the end of the filename for? $ ls # aliased to add flags -rwxrwxr-x 1 durrantm 2741 May 16 09:28 strip_out_rspec_prep_cmds.sh~* drwxrwxr-x 13 durrantm 4096 May 16 14:21 ../ -rwxrwxr-x 1 durrantm 2221 May 16 14:58 strip_out_rspec_prep_cmds.sh* This is not the same as .swp files which are … Read more

How to cause “Argument list too long” error?

Context for the question: According to POSIX specs, ARG_MAX is maximum length of command-line arguments to exec() family of functions. Which lead me to believe that’s actual number of arguments, however that clearly didn’t work: $ ulimit -s 8192 $ touch {1..18000}.jpg $ rm *.jpg $ Clearly, this works fine, despite being in length over … Read more

Is there a way to retrieve the name of the Desktop Environment?

Is there a way to retrieve the desktop environment name (e.g. Gnome, Unity, XFCE, LXDE, KDE…) from the command line or using Python? Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you … Read more