The ldd command will print out a list of all libraries that an executable is linked against. This is the output for a simple “Hello World” command. 20:15:31 [email protected] ($ ldd ./a.out linux-vdso.so.1 => (0x00007fff171ff000) libc.so.6 => /lib64/libc.so.6 (0x00007fe56ef58000) /lib64/ld-linux-x86-64.so.2 (0x00007fe56f2e8000) 20:15:49 [email protected] ($20:15:31 [email protected] ($ ldd ./a.out linux-vdso.so.1 => (0x00007fff171ff000) libc.so.6 => /lib64/libc.so.6 (0x00007fe56ef58000) …

To recall the last entered command on the Linux console, press the Ctrl-P key shortcut. You may also press the up arrow to recall the command, but the Ctrl-P shortcut is another good way to perform this feat. The CTRL-A shortcut will jump to the beginning of the line you are currently typing and CTRL-E …

Changing permissions of a file. To add executable permissions for all categories of a file, you would use chmod a+x foo. To add executable permissions for only the current user, you would use: chmod go-wx foochmod go-wx foo Or you could usechmod +x: chmod +x foochmod +x foo That is a simpler way of achieving …

Using the dircolors command in your ~/.bashrc. The dircolors command as used in your ~/.bashrc will set the colours of the various files and directories that are shown with the ls(1) command. Use the command dircolors –print-database to display a list of the filetypes and what colour codes will be used for each one. [ …