小编use*_*439的帖子

使用"chmod a + x"和"chmod 755"之间的区别

这可能听起来很愚蠢,但我有一个需要运行的文件/脚本,为了做到这一点,我必须将其更改为可执行文件.我想要使​​用chmod a+x或者chmod 755.但使用chmod a+x和之间有区别chmod 755吗?

unix linux chmod

62
推荐指数
3
解决办法
13万
查看次数

用于检查文件何时重命名的Linux/Unix命令

是否有特定的Unix/Linux命令可以在重命名文件时显示?我在Linux机器中有一个文件,想知道文件何时重命名.我尝试过,ls -ltr但该命令仅显示创建日期,而不是上次修改日期.

是否有特定的Unix/Linux命令来执行此操作?

unix linux

5
推荐指数
2
解决办法
5353
查看次数

我怎样才能让textarea成为只读,但不会变成灰色

我如何让textarea成为只读但不会变成灰色的?

我正在使用此脚本,但它无法正常工作:

$(".readonly").keydown(
function keydown(e) {
  if(!e.ctrlKey) return false; // Cancel non ctrl-modified keystrokes
  if(e.keyCode == 65) return true;// 65 = 'a'
  if(e.keyCode == 67) return true;// 67 = 'c'
  return false;
}
)
Run Code Online (Sandbox Code Playgroud)

我试图使用,<textarea readonly>但它使该领域变灰,我希望它只是readonly但不希望textarea字段变为灰色.

这是我的整个代码:

<body>

 <form name="search" method="post" action="">
 <fieldset style='width: 500px'>
 <legend align='left'><strong>Search</strong></legend>
 <p>
 Seach for: <input type="text" name="find" id="find" /> in 
 <Select NAME="field" id="field">
 <Option VALUE="testA">A</option>
 <Option VALUE="testB">B</option>
 <Option VALUE="testC">C</option>
 <Option VALUE="testD">D</option>
 </Select>
 <input type="hidden" name="searching" value="yes" />
 <input type="submit" name="search" id="search" value="Search" …
Run Code Online (Sandbox Code Playgroud)

javascript php

1
推荐指数
1
解决办法
2792
查看次数

标签 统计

linux ×2

unix ×2

chmod ×1

javascript ×1

php ×1