Recent content by maelamrani

  1. M

    Linux Command - Practice

    Thx a lot guys
  2. M

    Linux Command - Practice

    hello someone has a file or a lab to practice find grep command ? or a file in etc that contain a lot of information to grep on and find ... kind regards
  3. M

    sudo su - and su -

    Hello, whats the difference between sudo su - and su - kind regards,
  4. M

    Linux console address

    Ok, So im in prod environement how can i find this IMM/ILO/ "REDHAT?" ? because im working on an AIX Server/HP UX/ REDHAT. KInd regards,
  5. M

    Grep

    thx a lot
  6. M

    Grep

    Hello, Who explain me what this command do : grep -v grep Kind regards,
  7. M

    Linux console address

    Hello, For exp if the linux server is down, how to connect to the linux console ? So they told me to find the console address in case the server is down to do troubleshooting. Kind regards,
  8. M

    redirect multiple output command linux bash script

    Hello, How to redirect multiple command in a text file by a shell script i did like this : #!/bin/sh exec 5>&1 >> /tmp/file1.txt echo "-------" /usr/sbin/lsattr -E -l sys0 -a realmem echo "-------" /usr/sbin/lsps -a exec 1>&5 5>&- There is a simple way to do it ? Kind regards,
  9. M

    System Linux - Audit -

    So the question is : like a system administrator need to get data about system os cpu services driver gv lv network interface processus patch if we need to upgrade like auditing it because i need to create a doc and i asked about a usefull cmd to get those data
  10. M

    System Linux - Audit -

    Hello, I'm working like junior system administrator and they gave me a task to get all data about system, so the question its what should i extract like a data to do a system audit, what i did its : - uname -a - df -k - vg - lv - filesystems - top so can someone help with what shoul i do or...
  11. M

    Exec a cmd as root from another user without switch user

    Hello, how to Exec a cmd as root from another user without switch user. exp : su - root -c cat listing.txt but it doesnt work it not show anything it stay bliking Kind regards,
  12. M

    CentOS 8 - Minimal installation - FullDcreen VirtualBox

    Thx for your answer but i can get full screen in GUI version but not in minimal installation (terminal version) see screenshut
  13. M

    CentOS 8 - Minimal installation - FullDcreen VirtualBox

    Hello, How can i put my terminal in full screen by a command line i installed Guest Additionals when i use this command : system-config-display --reconfig --set-resolution=1920x1200 ==> system-config-display doesnt exist xrandr => cannot display error message Can you help me ? Kind regards
  14. M

    Loading .bash_profile of a new user automaticaly

    Hello, After i setup postgres packages i wanna load the .bash_profil after using su - postgres because i use source ~/.bash_profil -bash-4.2$ cat ~/.bash_profil [ -f /etc/profile ] && source /etc/profile PGDATA=/opt/rh/postgresql92/root/var/lib/pgsql/data export PGDATA PATH=$PATH ...
Top