When we compile a C source file using the GNU C compiler (GCC), the compiler first translates the code into an assembly source file. This assembly source is then processed by the assembler, which is included with GCC. The assembler generates object code, which is in a relocatable machine code format and is usually not directly executable. Next, the linker steps in to link the necessary libraries. Libraries are also in a relocatable format, which is why we compile them with the -shared, -fpic, or -fPIC flags. During the linking process, the linker checks the library names included in the source file and verifies whether these libraries are available in the system’s default library path, typically /usr/lib on GNU/Linux systems. If the required libraries are not in the default path, you can specify their location by passing them as an argument to GCC using the -I flag, like so: gcc -I/home/shuja/Documents/libmy.so C Source File Assembly Source (generated by GNU C compiler...
When you connect a USB modem to a Linux system, it often identifies the modem as a USB storage device. As a result, you may not be able to access the internet through the modem. To resolve this issue, you need to change the device's identification mode using the usb-modeswitch package. If your system already has internet access, you can easily install this package. First, you should check whether usb-modeswitch is already installed on your system. To do this, open the Terminal and type the following command: sudo usb_modeswitch If the package is installed, you will see output confirming its presence on your system.
Tar used to create archive files in Unix/Unix like systems to make tape backups. Create tar archive tar -cvf my_archive.tar myDirectory c = Create v = Verbose f = File List files in an archive tar -tvf my_archive.tar t = list v = verbose f = file Create tar archive with gzip compression tar -cvzf my_archive.tar.gz myDirectory c = Create v = Verbose z = Gzip Compression f = File Un tar / unzip tar -xvf my_archive.tar
Comments
Post a Comment