Renaborges.com

Linux Directory Structure Explained

April 10, 2020
 Apart from the home folder, you need administrator privileges to access the other folders. Although you can look.
  
= This is the root directory which should contain only the directories needed at the top level of the file structure.  
  
root folder - home directory for the super user = That's where the root home users directory is if you have a root user account activated on your system. This is different from the / directory, which is the system's root directory.
  
/bin - essential binary commands = It’s where all the programs live. It contains executable binaries, essential commands to boot the system or in single-user mode, and essential commands required by all systems users, such as cat, cp, ls, mv, ps, and rm. Applications (such as Firefox) are stored in /usr/bin, while important system programs and utilities, such as the bash shell, are located in /bin.
  
/sbin - binary administration files = Likewise the /bin, the /sbin directory is intended for essential binaries related to system administration, such as fsck, fdisk, ifconfig, shutdown and adduser utilities. To view a list of these programs, type: ls /bin - ls /sbin. On some of the newest Linux distributions /usr/bin and /bin are actually just symbolically linked together, as are /usr/sbin and /sbin.
  
/boot - boot process files = Contains the files that the kernel needs to boot the machine. The Bootloader lives here and you don't have access. When the system boots up it fires the kernel. The kernel (vmlinuz file with a piece of code) manages the processes, the device drivers and I/O. When it's fired it initializes the hardware and the internal data structures; When it's complete it then starts the init.
  
/media - removable media = cd drive, dvd drive shows up here or in /run
  
/dev - device files = On Linux, everything is presented in the form of files. When plugging a USB stick into the computer, for example, a file will be created inside the /dev directory and it will serve as an interface to access or manage the USB drive. In this directory, you will find similar ways to access terminals and any device connected to the computer, such as the mouse. That's also where you can find the /dev/null.
  
/etc - configuration files = It’s an important folder, it holds all sort of configuration files for the system. You can go in and change a file, because the majority are text files.
  
/home - personal folders = where the users have their personal folder with their name like /home/renata.
  
lib & lib64 essential shared libraries = where libraries of the installed packages live, they are like DLLs in Windows. It’s where the libraries used by the commands present in /bin and /sbin are located. The /bin & /sbin executable binaries need these libraries to run.  
  
/opt - optional packages = Contains sub-directories for optional software packages. It is commonly used by proprietary software, which does not conform to the standard file system hierarchy - for example, a proprietary program can place its files in /opt/application when you install it. Example of it google chrome and teamviewer.
  
/tmp - temporary files = Where applications and programs store files temporarily. Usually, that directory is cleared out when you reboot your system.
  
/var - variable data files = That's where a lot of logs and temporary files for the system are stored, these are variable data. This is variable, it changes of size every time the system is running. A good example is the system logs, that is, text-based records of activities performed on Linux, such as logins made over the months.
  
/usr - user system resources = This directory represents the second largest section of the Linux file structure. A large directory hierarchy that looks a little bit like the root. Many of the directory names in /usr are the same as in root and hold the same type of files. Icons for your desktop are stored here, things the desktop uses. A sufficient reason to justify its size is sharing, as /usr contains read-only files, libraries and binaries used by all users of the system, directly or indirectly.   
  
/mnt – mount of temporary programs = Used to mount other temporary external file systems, such as cdrom and floppy for the CD-ROM drive and floppy diskette drive, respectively.
  
/proc – process information = It's a virtual file system created on the fly when system boots and is dissolved at time of system shut down. This directory contains files that reveal information about the resources and processes running on the system. Example: To find out how long your Linux has been in use since the last time it was started, just read the /proc/uptime file with the command 'uptime'.
  
/srv – service data = Contains data for services provided by the system. If you use the Apache server on a website, you probably store your website's files in a directory within /srv.
  
/cdrom - historical mount point for CD-ROMs = This directory is not part of the FHS(File System Hierarchy) standard, but you can find it on Ubuntu and other versions of the operating system. It is a temporary location for CD-ROMs inserted into the system. However, the default location for the temporary media is within the /media directory.
  
/lost+found - recovered files = If the file system fails, a system check will be performed on the next boot. Any corrupted files found will be placed in that directory, so that you can try to recover the data.
  
/run - temporary application files = It gives applications a standard place to store temporary files, such as sockets and process IDs. These files cannot be stored in / tmp, as files located in / tmp can be deleted.
  
 

Explaining and Managing Service Management Facility (SMF) - Oracle Solaris Administration

April 1, 2015
Service Management  Facility (SMF) is a way to organize and manage the services in Solaris. It's a unified mechanism to manage the services Start / Stop, Restart services with dependencies. When the OS boot up the SMF run a Start-up Services Configuration for all the services with dependencies; Without Run Control (RC) scripts, it's easy to manage. If you come across a problem with one of the services you can take actions with the commands from SMF to manage the service. These actions can be...

Continue reading...
 

What is Boot Environment and How to Manage It

March 31, 2015
Boot Environment (BE) is a bootable instance of the image of the Oracle Solaris operating system and of any other software packages  installed in this image. Think in your particular OS, let's say Windows 7, with all your programs and updates installed on it,  creating a BE of this OS is to have all your  programs and updates saved in a partition as a file, where you can boot in case the main one in use gets corrupted for instance. However, Boot Environment belongs particularly for Solaris be...

Continue reading...
 

Getting Information About Packages in Solaris - Image Packaging system (IPS)

March 31, 2015
The pkg list command will tell you if a package is installed, frozen, obsolete or renamed under the column IFO.

I "i" = Package is installed
F "f" = If a package is frozen, you can only install or update to packages that match the frozen version.
O "r" = It indicates that package has been renamed.
O "o" = It indicates that package is obsolete. You cannot install a package that is marked obsolete.

reny@solaris11_2:~$ pkg list gedit
NAME (PUBLISHER)                                  VERSION          ...

Continue reading...
 

Identifying Processors in Solaris - psrinfo / psradm

March 27, 2015
Usually a solaris box has several processors on-board. Here I show you some simple commands like how to enable / disable / spare the processors using  psradm.
When comes to troubleshoot hardware issues it comes handy.

-bash-4.1$ psrinfo
0       on-line   since 02/05/2015 13:36:38
1       on-line   since 02/05/2015 13:36:41
2       on-line   since 02/05/2015 13:36:41
3       on-line   since 02/05/2015 13:36:41
4       on-line   since 02/05/2015 13:36:41
5       on-line   since 02/05/2015 13:36:41
6   ...

Continue reading...
 

Changing the host-name in Solaris 11

March 27, 2015

If would like to change the host-name in Solaris 11, it's quite simple and much simpler nowadays. You can basically do it in only 2 steps.
 
1 - First of all you should check the current properties of the system using svccfg:
 
reny@solaris11_2:~$
svccfg -s system/identity:node listprop config
config                       application        
config/enable_mapping       boolean     true
config/ignore_dhcp_hostname boolean     false
config/nodename             astring     solaris11_2
config/loopbac...

Continue reading...
 

What can you do with a 3D Printer?

February 21, 2014


You have probably heard about 3D printers, but probably does not have one at home. These machines are becoming more popular and leading to profound changes in the market to offer a choice between mass production and customization of industry and manufacturing. 3D printing is the boundary between the physical and virtual, the digital and the real world.

However, it is misleading to think that 3D printing is something new, the technology has existed for 30 years. What happened in recent years ha...

Continue reading...
 

SanDisk launches pendrive for Android Smartphones and tablets

February 13, 2014




Having more storage space on tablets and Smartphones or to be able to use files that are on  USB sticks are some of the difficulties for users of mobile devices. To be able to download these files with ease, the manufacturer SanDisk introduced on Tuesday ( 11 ) the stick "Ultra Dual USB Drive" with USB input - to connect to a PC, and a micro - USB, which is attached to mobile phones and tablets.

According to the company, the flash drive allows you to store and backup data, and free up mor...

Continue reading...
 

How to install a fully portable desktop on a USB for on-the-go access

August 18, 2013

Porteus is a portable Linux operating system which is able to be installed on a portable USB device.
"Porteus manages to offer a full-blown distribution by installing in a compressed state (to keep its footprint small). During the boot process, it uncompresses and boots very quickly. Porteus also offers a package manager so you can easily install more applications. The package manager has a dedicated Porteus repository to select from, but you can install applications from any repository...

Continue reading...
 

Fix MS Bluetooth Notebook Mouse 5000 v1.0 connection

January 9, 2013


I am running on Windows 7 64bit on a Samsung S3511. My MS Bluetooth Notebook Mouse 5000 v1.0 always stop working after hours of use. I simply could not get my laptop to pair with the device this time. When I try to add it again, everything seems to work, but then no response from the pointer, and after few seconds the device disappear from the list of bluetooth devices. 

Here's what finally solved it for me:

1. Disable "Power Management".  Click on Bluetooth icon, select Open Settings.  G...

Continue reading...
 
blog comments powered by Disqus
blog comments powered by Disqus