Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Questions about deleting user folder and another about trash bin
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Kokopelli" data-source="post: 192068"><p>Yes that is because you were running the command as "root" something to be done with caution unless you know what you are doing, thus my warnings. The risk in a move (mv) is minimal so I left it be. At worst we would have to move the file back to the right location.</p><p></p><p></p><p></p><p>Ironcially this is the third time I have been asked this in a week. I will dig up some resources and post a thread. In general terms the terminal is a BASH shell, so most resources explaining the use of BASH should do. There are minor quirks to each platform (Linux, OS X, BSD, AIX, etc...) but generally they don't come up much, mostly a command missing here and there.</p><p></p><p></p><p></p><p>Yes, that is why I suggested creating a file and seeing if you could drag that file into the trash.</p><p></p><p>If you want to check what I suspect (that your trash is set to a different owner) open a terminal and type "ls -la | grep Tra*" and make sure it lists something like this:</p><p></p><p>drwx------ 2 <username> <username> ... .Trash</p><p></p><p>the important parts are "rwx" meaning you have read, write, and execute rights, and "<username> <username>" being the owner of the folder.</p><p></p><p>I qualify all this with my classic caveat. I am a command line junkie, there may be an easier way with the GUI but if there is I do not know it. Perhaps someone else can help there.</p><p></p><p>----------------------</p><p>P.S. As a first lesson "ls -la | grep Tra*"</p><p>ls => list files</p><p>-la => <strong>l</strong>ist details and list <strong>a</strong>ll files including hidden ones</p><p>| => use the output of the command on the left of | (pipe) as the input to the command on the right</p><p>grep Tra* => print only lines that match the pattern Tra*</p><p></p><p>thus we listed all the files in a directory but only printed the ones with Tra in the line as output.</p></blockquote><p></p>
[QUOTE="Kokopelli, post: 192068"] Yes that is because you were running the command as "root" something to be done with caution unless you know what you are doing, thus my warnings. The risk in a move (mv) is minimal so I left it be. At worst we would have to move the file back to the right location. Ironcially this is the third time I have been asked this in a week. I will dig up some resources and post a thread. In general terms the terminal is a BASH shell, so most resources explaining the use of BASH should do. There are minor quirks to each platform (Linux, OS X, BSD, AIX, etc...) but generally they don't come up much, mostly a command missing here and there. Yes, that is why I suggested creating a file and seeing if you could drag that file into the trash. If you want to check what I suspect (that your trash is set to a different owner) open a terminal and type "ls -la | grep Tra*" and make sure it lists something like this: drwx------ 2 <username> <username> ... .Trash the important parts are "rwx" meaning you have read, write, and execute rights, and "<username> <username>" being the owner of the folder. I qualify all this with my classic caveat. I am a command line junkie, there may be an easier way with the GUI but if there is I do not know it. Perhaps someone else can help there. ---------------------- P.S. As a first lesson "ls -la | grep Tra*" ls => list files -la => [b]l[/b]ist details and list [b]a[/b]ll files including hidden ones | => use the output of the command on the left of | (pipe) as the input to the command on the right grep Tra* => print only lines that match the pattern Tra* thus we listed all the files in a directory but only printed the ones with Tra in the line as output. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Questions about deleting user folder and another about trash bin
Top