chfs não funciona em um shell ksh de login [closed]

3

Não consigo encontrar uma razão pela qual o comando chfs falhe em ksh (abro ssh sesion com putty). Mas quando eu executo o ksh ou o ksh93 no shell novamente, ele funciona.

Alguma pista?

# alias|grep chfs
# type chfs
chfs is /usr/sbin/chfs
# /usr/sbin/chfs -a size=+256M /opt
Usage: chfs [-n nodename] [-m newmtpt] [-u mtgrp] [-A {yes|no}] [-t {yes|no}] [-p {ro|rw}] [-a attr1=val1] [-d attr] fsname
# ksh93
# /usr/sbin/chfs -a size=+256M /opt
Filesystem size changed to 4194304
# ksh
# /usr/sbin/chfs -a size=+256M /opt
Filesystem size changed to 4718592
# exit
# exit
# /usr/sbin/chfs -a size=+256M /opt
Usage: chfs [-n nodename] [-m newmtpt] [-u mtgrp] [-A {yes|no}] [-t {yes|no}] [-p {ro|rw}] [-a attr1=val1] [-d attr] fsname
# f root
Login name: root                      In real life: Super User
Directory: /root                        Shell: /usr/bin/ksh
On since Sep 06 05:56:55 on pts/4, 4 minutes 30 seconds Idle Time
    from qlhhubfc
On since Sep 06 06:59:40 on pts/6
    from xxxxxxxxxxxx
No Plan.
# ksh
# /usr/sbin/chfs -a size=+256M /opt
Filesystem size changed to 5242880
    
por Chris 06.09.2018 / 09:19

1 resposta

0

Gostaria de saber se o shell está interpretando um dos argumentos, tente

/usr/sbin/chfs '-a' 'size=+256M' '/opt'
    
por 08.09.2018 / 13:05

Tags