Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Tuesday, May 20, 2025

Linux commands

Below is a list of useful Linux commands


There are several ways in which directories in the current path can be displayed:

Using ls with -l to print directories: $ ls -l */
Using ls -F with grep : $ ls -F | grep "/$"
Using ls -l with grep : $ ls -l | grep "^d" 

Make a hidden directory

mkdir .dirname - add a period in front of the name

List hidden directories

ls -a

Show directory size:

du -sk to show the size in kilobytes

du -sh to show the size in more human-friendly format



Saturday, February 21, 2015

How to change console backround and text color in Linux

Type in the following command to change the background to white and text to black:

setterm -background white -foreground black -store