个人工具
登录
查看“UbuntuHelp:Forum/moving”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Forum/moving”的源代码
来自Ubuntu中文
←
UbuntuHelp:Forum/moving
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/forum/moving}} {{Languages|UbuntuHelp:forum/moving}} The how to has been pulled together in credit by darkmatter from Ubuntu Forums. The How To has been edited and published by SteveMyers. The direct steps are provided on moving a file from one directory to another by the command line, in doing so the serial.txt is being used as an example of how to move a file from one side of the HD to the other. ------------------------------------------- To move !serial.txt to math (as root - since the output you listed was from your root account), type the following in a terminal. <pre><nowiki> mv ~/!serial.txt ~/math </nowiki></pre> The '~' is a 'shorthand' representation for the 'home' folder of the account you are running from. For example, If the above files were on my system under my user account, I could move the .txt by the following Code: <pre><nowiki> mv /home/darkmatter/!serial.txt /home/darkmatter/math </nowiki></pre> Running as root, and the above files were in my root directory, I would move the .txt with <pre><nowiki> mv /root/!serial.txt /root/math </nowiki></pre> To save on typing, I can substitute '~' in place of the home directory. So for either of the above situations, the command would look the same: <pre><nowiki> mv ~/!serial.txt ~/math </nowiki></pre> The same files, if in the root account, could also be moved with the sudo command from my user account, but i would need to give the full path to the file, as well as the math directory <pre><nowiki> sudo mv /root/!serial.txt /root/math </nowiki></pre> Special Reference In a terminal, type <pre><nowiki> man bash </nowiki></pre> ---- [[category:CategoryForum]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Forum/moving
。