Posted: . At: 9:52 AM. This was 7 years ago. Post ID: 10689
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



Some very useful Linux tips for the desktop and terminal user.


  1. Very useful Linux tips and tricks for the terminal user
  2. Very good find command trick
  3. Install a very nice slim desktop on Linux Mint and Ubuntu
  4. Set a locale on a Debian system
  5. Change the Plymouth theme on ubuntu
  6. List only directories in a directory listing with ls

Very useful Linux tips and tricks for the terminal user

Very good find command trick

Find all files on your system changed since a certain date.

ubuntu ~ $ sudo find . -type f -newermt 2017-04-25
./.local/share/mc/history
./.local/share/mc/filepos
./.cache/mc/Tree
./uptime.py
./.config/mc/ini
./.viminfo
./.bash_history

Install a very nice slim desktop on Linux Mint and Ubuntu

jason@jason-virtual-machine ~ $ sudo apt install i3 lxdm lxappearance pcmanfm gnome-themes-standard breeze-icon-theme

Then logout of the desktop and press Control-Alt-F2 to get to a virtual terminal. Login and type sudo service mdm stop. Then start lxdm with this command: sudo service lxdm start.

Linux Mint i3 desktop.
Linux Mint i3 desktop.

Now the Linux Mint distribution has a nice, fast desktop interface.

Set a locale on a Debian system

The locale on a Debian system is set via the /etc/locale.gen file. I un-commented the locale I needed, then I ran the locale-gen command as root to generate a locale for the system.

Generating a new locale for a Debian system.
Generating a new locale for a Debian system.

This is very easy to do.

The shopt command in bash will show shell options. Just use the shopt built-in command to list all of the available shell options.

To set an option, do it like this.

ubuntu ~ $ shopt -s mailwarn

This turns the mail warning on.

Turn if off again like this.

ubuntu ~ $ shopt -u mailwarn

Change the Plymouth theme on ubuntu

Change the Ubuntu Plymouth theme with this simple guide.

http://securitronlinux.com/bejiitaswrath/how-to-change-the-default-plymouth-theme-manually-on-ubuntu-14-10/.

List only directories in a directory listing with ls

The ls command may be used to list only directories. This is very easy.

ubuntu ~ $ ls -la -d */
drwxrwxr-x 2 ubuntu ubuntu 4096 Jun 10  2016 boards.4chan.org/
drwxr-xr-x 2 ubuntu ubuntu 4096 Nov  3  2015 crunch-3.6/
drwxrwxr-x 5 ubuntu ubuntu 4096 Apr 27 23:47 Documents/
drwxr-xr-x 3 ubuntu ubuntu 4096 Mar  5  2016 easy-rsa/
drwxrwxr-x 5 ubuntu ubuntu 4096 Jul 16  2015 hackme/
drwxrwxr-x 5 ubuntu ubuntu 4096 May 16  2016 ipinfo/
drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 31  2016 jail/
drwxrwxr-x 2 ubuntu ubuntu 4096 May 29  2015 keys/
drwxrwxr-x 3 ubuntu ubuntu 4096 May 14  2015 nt/
drwxrwxr-x 2 ubuntu ubuntu 4096 Feb 20  2015 openvpn/
drwxrwxr-x 3 ubuntu ubuntu 4096 Apr 24 02:19 tmp/
drwxrwxr-x 7 ubuntu ubuntu 4096 Mar 13  2015 wpscanteam-wpscan-aed74e0/

The ls -la -d */ command is very useful for this.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.