|
1 |
yum install kernel-uek-devel |
|
1 |
yum install kernel-uek-devel |
RHEL/Oracle Linux
CentOS
|
1 |
watch -n 1 --differences "mysql -u username -pPassword -e 'show processlist'" |
|
1 |
namei -om /path/to/dir |
|
1 2 3 4 5 6 7 8 9 10 |
namei -om /var/www/mbeck/pwgen.mbeck.org/htdocs/public/index.html f: /var/www/mbeck/pwgen.mbeck.org/htdocs/public/index.html drwxr-xr-x root root / drwxr-xr-x root root var drwxr-xr-x root root www drwxr-x--- mbeck nginx mbeck drwxr-xr-x mbeck mbeck pwgen.mbeck.org drwxr-xr-x mbeck mbeck htdocs drwxr-xr-x mbeck mbeck public -rw-r--r-- mbeck mbeck index.html |
|
1 |
[: =: unary operator expected |
Use:
|
1 2 |
if [ "$aug1" = "and" ]; if [ "$aug1" = "and" ]; |
because otherwise, if $aug1 is undefined or empty, it vanishes from the scene of the crime, leaving only
if [ = "and" ];
which is not valid.
With the modern [[, you don’t need to worry about that. It has lots of other nice features, too.
/etc/fstab
|
1 |
dir_mode=0777,file_mode=0777 |
|
1 |
//remote/share /local/share cifs credentials=/etc/cifs.secret/secretfs,dir_mode=0777,file_mode=0777,noexec 0 0 |
|
1 2 3 4 5 6 7 |
mount -t cifs //10.150.21.1/www /mnt/smb/www mount: wrong fs type, bad option, bad superblock on //10.150.21.1/www, missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program) In some cases useful info is found in syslog - try dmesg | tail or so |
|
1 2 3 |
dmesg | tail Slow work thread pool: Ready CIFS VFS: cifs_mount failed w/return code = -22 |
Just install cifs-utils
|
1 |
yum install cifs-utils |
|
1 2 |
sed 's/\r//' file.sh > tmp mv tmp file.sh |