CLI

Kill GNU/Linux process from the command line

Desktop like GNOME, KDE, XFCE, LXDE have a task manager that allows you to terminate a process using the graphical interface, but not always we have managers like these or we simply work without graphical interface (server) and we need to kill a particular process because it does not respond to any action, and that's when should lend hands to the console

Kill GNU/Linux process from the command line Read More »

Shell script to rename to lowercase files and directories

GNU/Linux

In the GNU/Linux world, it is common to use lowercase characters to identify files and directories, to illustrate the above we show the DIRs that are found under the /etc/apache2 DIR on Debian GNU/Linux

/etc/apache2/
├── conf-available
├── conf-enabled
├── mods-available
├── mods-enabled
├── sites-available
└── sites-enabled

so if you have one or several DIRs in uppercase or lowercase and uppercase at the same time and for uniformity want to all be lowercase then you can rely on the following script.

[githubget repo=1]sysadmin/shscript/tolower.sh[/githubget]

To use the script download here

Set execute permissions
chmod a+x tolower.sh
Run the script
./tolower.sh nombre-del-fichero

Further readings

  • man find
  • man tr

Shell script to rename to lowercase files and directories Read More »

Mount ISO, BIN and NRG images

GNU/Linuxfuseiso is an utility that allows you to mount ISO, BIN and NRG images in the userspace file system then you can browse them with any file manager such as any directory can be inspected.

Install fuseiso

Debian/Ubuntu and derivatives

$ sudo apt-get install fuseiso

CentOS/RHEL
Enable rpmforge

# yum install fuse-iso

Use fuseiso

$ fuseiso -p my.iso access-point

access-point = DIR where you will mount the image

Unpack .iso with 7-Zip

See 7-Zip – An excellent archive compressor / decompressor

Further reading

– man fuseiso

Mount ISO, BIN and NRG images Read More »

7-Zip – An excellent archive compressor / decompressor

7-zip is a file compressor with a high ratio of compression. The main features are:

  • High ratio of compression (LZMA algorithm)
  • Compress / decompress: 7z, ZIP, GZIP, BZIP2 and TAR
  • Unzip: ARJ, CAB, CHM, CPIO, DEB, DMG, HFS, ISO, LZH, LZMA, MSI, NSIS, RAR, RPM, UDF, WIM, XAR and Z
  • Robust encryption: AES-256 for 7z and ZIP formats
  • Allows to create self-extracting archives (SFX)
  • Command line version
  • Integration with File Roller, XArchiver and XArchive
  • Multi-platform
  • Multi-language

7-Zip – An excellent archive compressor / decompressor Read More »