显示隐藏文件夹的7种方法方法

Mac系统之----教你怎么显示隐藏文件,或者关闭显示隐藏文件
缺省情况下,在&Mac&下是不显示隐藏文件的,Finder
也未提供设置是否显示隐藏文件的选项,不像&Windows&下,有一个“文件夹选项“设置界面里可以控制,但这并不表示
Mac 下无法显示隐藏文件,我可以通过“终端”,用命令行设置这个选项,命令如下:
显示:defaults write
com.apple.finder&AppleShowAllFiles
-bool true
隐藏:defaults write
com.apple.finder&AppleShowAllFiles
-bool false
除了命令行设置外,也有第三方工具可以实现,有一个叫&OnyX&的程序可以实现,
首先,转到你要查看隐藏文件的文件夹
接着,Command-F,搜索该文件夹
点击右侧的“+”号,出现搜索控制选项,默认是Kind,点击下拉列表,选择other, 找到File
invisible选项,并对右边的方块打勾。
OK了,现在你可以在搜索控制选项中选择文件的File
Visibility状态了,点击选项中的invisible即可显示隐藏文件
方法三:使用工具
ShowOrHide
&开关隐藏文件的显示
http://download.csdn.net/detail/p83095
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。热门搜索:
当前位置: >
怎样显示隐藏文件夹|win7系统如何显示隐藏文件夹
来源:&&&&浏览量:
  电脑中病毒后,比例exe病毒,很多文件夹都会被隐藏起来。当然也有忘记隐藏的文件夹放在哪里的疑问。那么,该如何操作,才能让隐藏的文件夹无所遁形呢?下面墨染暖心告诉大家win7系统如何显示隐藏文件夹二种方法。
  推荐:
  方法一:制作文件夹取消隐藏的批处理文件
  1.在要设置显示隐藏文件夹的目录下&鼠标右键空白处&在右键菜单栏中选择&新建&&&文本文档&,如图1所示:
图1 新建文本文档
  2.双击打开&新建文本文档.txt&&在该记事本文档中输入以下代码:
  attrib -h -r -s /s /d
  然后保存&关闭。如图2所示:
图2 在该记事本文档中输入以下代码
  3.选中刚刚的&新建文本文档.txt&&鼠标右键&在出现的右键菜单栏里选择&重命名&&改为&取消隐藏.bat&,如图3所示:
  PS:若没有设置显示已知文件类型的扩展名,是看不到.txt和.bat这些后缀。要用此步骤实现记事本文档到批处理文件的转换,就需要。
图3 重命名该文件类型
  4.在弹出的重命名窗口,提示&如果改变文件扩展名,可能会导致文件不可用&,选择&是&,如图4所示:
图4 重命名提示
  5.双击运行&取消隐藏.bat&批处理文件,可以看到墨染暖心之前隐藏的文件夹都显示出来了,如图5所示:
图5 运行&取消隐藏.bat&批处理
  PS:该方法的优点
  可以恢复任何目录和文件夹下的隐藏文件,而不用在cmd中输入大量的磁盘目录代码,也不用指定磁盘。想恢复哪个磁盘或文件夹下的怎么显示隐藏文件夹,只需要将这个文件拷到该目录下,执行就行了。
  方法二:修改文件夹和搜索选项
  1.双击打开桌面上的&计算机&图标。
  2.选择&组织&&&文件夹和搜索选项&,如图6所示:
图6 打开文件夹和搜索选项
  3.在出现的文件夹选项界面中&选择&查看&栏目&在高级设置中选择&显示隐藏文件、文件夹和驱动器&&点击&确定&,如图7所示:
图7 显示隐藏的文件、文件夹和驱动器
  4.此时,墨染暖心E盘下的隐藏文件都显示出来了,如图8所示:
图8 隐藏文件显示出来
  【温馨提示】方法一是去掉了特定目录下隐藏文件的隐藏属性。方法二是显示隐藏的文件,没有改变隐藏文件的隐藏属性,而且整个硬盘上的所有隐藏文件都可见了,除了那些受计算机保护的操作系统文件和驱动文件。怎样显示隐藏文件夹按照上图的操作步骤就行了,如何显示隐藏文件夹就可以轻易解决了。
《怎样显示隐藏文件夹|win7系统如何显示隐藏文件夹》相关内容
发现好专题
评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
Win7教程排行
最新系统下载
Win7教程推荐热门搜索:
Win7旗舰版系统无法显示隐藏文件解决方法
  在中打开文件夹,无法显示隐藏文件,在网上找到的方案也是驴唇不对马嘴,文件夹选项设置完成之后也没有任何效果,这种情况应该是注册表项被修改了。
  解决方案:
  在桌面新建一个记事本,把图片下方的内容复制进去,然后将记事本的后缀名.txt改为.reg,双击导入注册表即可:
  Windows Registry Editor Version 5.00
  [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL]
  &RegPath&=&Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced&
  &Text&=&@shell32.dll,-30500&
  &Type&=&radio&
  &ValueName&=&Hidden&
  &HKeyRoot&=dword:
  &HelpID&=&shell.hlp#51105&
  &DefaultValue&=dword:
  &CheckedValue&=dword:
  有些朋友发现,&文件夹选项&中的设置也无法显示隐藏文件,这是中了病毒的症状。
  中了这种病毒后的症状有:
  1、系统桌面出现大量恶意图标,删除后会自动生成。
  2、点击C、D等盘符图标时会另外打开一个窗口。
  3、隐藏文件无法显示,即使修改文件夹选项后仍然无法复原。
  建议安装一些强力的杀毒软件,彻底清扫这些顽固病毒保证系统安全使用。
摘要:在Win7系统中打开文件夹,无法显示隐藏的文件,在网上找到的方案也是驴唇不对马嘴,文件夹选项设置完成之后也没有任何....
Windows系统之家为大家提供一个绿色的平台 Copyright (C)6524人阅读
mac os x实用技巧
&Mac有一个设计原则,就是用户不需要看到的或者用户不希望看到的,都不会显示出来。但如果你想要修改其中某些文件,也是可以的,先需要显示所有的文件,可以在终端中输入命令行来实现。
显示系统隐藏的文件
defaults write com.apple.finder AppleShowAllFiles -bool true
KillAll Finder
defaults write com.apple.finder AppleShowAllFiles YES
KillAll Finder
同样可以把这些隐藏文件再隐藏起来
defaults write com.apple.finder AppleShowAllFiles -bool false
KillAll Finder
defaults write com.apple.finder AppleShowAllFiles NO
KillAll Finder
在显示了所有文件之后,那如何把一个不是隐藏的文件修改为隐藏呢,下面介绍两种简单的方法。
方法一:直接在文件或文件夹名前面的加一个‘.’点号,然后系统会弹出修改确认对话框,点好就行了。
方法二:利用命令“chflags hidden” 可以隐藏文件或文件夹。
先打开Terminal(Applications/Utilities/Terminal),然后执行命令
chflags hidden 文件路径 或
chflags hidden 文件夹路径
既可。也可以先输入chflags hidden,然后直接把要隐藏的文件用鼠标选中拖到输入框中,它自动会转换为文件的路径。
要解除文件的隐藏状态,可以使用命令:
chflags nohidden
与前面相对应即可。
上面两种方式,到底有啥区别呢,个人觉得方法一并没有修改文件本身的属性,在linux及unix中,约定好点开头的文件就是隐藏文件。
方法二中修改的是文件本身的隐藏标志,但貌似在windows上不起作用,只能在linux及unix中有用。而方法一,windows也是可以显示
隐藏的,应该是windows也识别linux及unix中的点号约定。
在网上还发现有一个可以隐藏文件及文件夹的开源工程,提供了一个带界面的程序,可以方便不会使用命令行的用户,地址是/p/hideme4mac/
最后,附加上chflags命令的详细信息。
chflags 命令修改文件的标志(change file flags),包括隐藏标志,其详细使用方法如下:
chflags [-fhv] [-R [-H | -L | -P]] flags file ...
DESCRIPTION
The chflags utility modifies the file flags of the listed files as specified by the flags operand.
The options are as follows:
-f Do not display a diagnostic message if chflags could not modify the flags for file, nor modify
the exit status to reflect such failures.
-H If the -R option is specified, symbolic links on the command line are followed. (Symbolic
links encountered in the tree traversal are not followed.)
-h If the file is a symbolic link, change the file flags of the link itself rather than the file
to which it points.
-L If the -R option is specified, all symbolic links are followed.
-P If the -R option is specified, no symbolic links are followed. This is the default.
-R Change the file flags for the file hierarchies rooted in the files instead of just the files
themselves.
-v Cause chflags to be verbose, showing filenames as the flags are modified. If the -v option is
specified more than once, the old and new flags of the file will also be printed, in octal
The flags are specified as an octal number or a comma separated list of keywords. The following key-
words are currently defined:
arch, archived
set the archived flag (super-user only)
opaque set the opaque flag (owner or super-user only). [Directory is opaque when viewed through
a union mount]
nodump set the nodump flag (owner or super-user only)
sappnd, sappend
set the system append-only flag (super-user only)
schg, schange, simmutable
set the system immutable flag (super-user only)
uappnd, uappend
set the user append-only flag (owner or super-user only)
uchg, uchange, uimmutable
set the user immutable flag (owner or super-user only)
hidden set the hidden flag [Hide item from GUI]
As discussed in chflags(2), the sappnd and schg flags may only be unset when the system is in single-
user mode.
Putting the letters ``no'' before or removing the letters ``no'' from a keyword causes the flag to be
cleared. For example:
nouchg clear the user immutable flag (owner or super-user only)
dump clear the nodump flag (owner or super-user only)
Unless the -H or -L options are given, chflags on a symbolic link always succeeds and has no effect.
The -H, -L and -P options are ignored unless the -R option is specified. In addition, these options
override each other and the command's actions are determined by the last one specified.
You can use &ls -lO& to see the flags of existing files.
下面提供一个中文版
chflags – 改变文件的标志
chflags [-fhv] [-R [-H | -L | -P]] 标志 文件
工具chflags修改指定文件的文件标志。
选项如下:
-f 如果chflags不能修改文件标志,nor modify the exit status to reflect such failures,则不显示诊断信息。
-H 如果开启-R选项,将改变软连接指向的文件的文件标志(遍历树中的软连接除外)。
-h 如果文件是软连接,只改变该链接的文件标志,而不改变该链接所指向的文件的标志。
-L 如果-R选项开启,将改变所有软连接所指向的文件的文件标志。
-P 如果-R选项开启,将不改变所有软连接所指向的文件的文件标志。这是默认选项。
-R Change the file flags for the file hierachies rooted int the files instead of just the files themselves.
-v 当修改标志时显示文件名。如果 –v 出现两次以上,则以八进制同时显示旧标志和新 标志。
文件标志以一个八进制数或一系列以逗号分隔的关键词来显示。下面是当前定义的关 键词:
arch,archived
存档文件标志(超级用户独有)
opaque 不透明文件标志(适用于文件所有者或超级用户)
nodump nodump文件标志(适用于文件所有者和超级用户)
sappnd,sappend
仅允许附加 文件标志(超级用户独有)
schg,schange,simmutable
不可更改 文件标志(超级用户独有)
sunlnk,sunlink
不可删除 文件标志(超级用户独有)
uappnd,uappend
只允许用户附加 文件标志(适用于所有者和超级用户)
uchg,uchange,uimmutable
不允许用户更改 文件标志(适用于所有者和超级用户)
uunlnk,uunlink
不允许用户删除 文件标志(适用于所有者和超级用户)
在关键词前面添加或者去除“no”将清除相应的文件标志。例如:
nouchg 清除 不可更改 文件标志(适用于所有者或超级用户)
dump 清除 nodump 文件标志(适用于所有者或超级用户)
八进制数值对应的文件标志:
0 清除所有文件标志
3 uchg,nodump
Other combinations of keywords may be placed by using the octets assigned.但是,以上这些是最常用的。
你可以使用 “ls -lo”来查看文件的文件标志。
注意:能否改变某些标志依赖于当前内核的安全级别设定。查看security(7)来获得更多的 信息。
退出状态:
成功 0,失败&0.
ls(1), chflags(2), stat(2), fts(3), security(7), symlink(7)
chflags最早出现在4.4BSD当中。
Only a limited number of utilities are chflags aware. Some of these
tools include ls(1), cp(1), find(1), install(1), dump(8), and restore(8).
In particular a tool which is not currently chflags aware is the pax(1)
utility.chio
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:116858次
积分:1915
积分:1915
排名:第13786名
原创:64篇
评论:75条
(4)(4)(2)(1)(8)(15)(30)电脑教程子分类

我要回帖

更多关于 隐藏文件夹的7种方法 的文章

 

随机推荐