Welcome Guest, Not a member yet? Register   Sign In
removing a file on a Linux server
#2

(This post was last modified: 09-08-2018, 12:35 AM by skunkbad.)

Richard, you're in the wrong directory.

If you look closely at your image, the directory that contains the file you want to delete is not ~/apps. You were in that directory, but then you went up one directory with cd ..

The directory that contains the file you want to delete is your home directory (~).

You should be able to do this:

sudo rm -f ~/C:\xampp\php\logs\php_error_log

or to make it easy on yourself:

sudo rm -f ~/*php_error_log

Just a tip; most Linux distros will allow you to type "ll" instead of "ls -l" or "ls -la". It's really fast. Give it a shot.
Reply


Messages In This Thread
removing a file on a Linux server - by richb201 - 09-08-2018, 12:10 AM
RE: removing a file on a Linux server - by skunkbad - 09-08-2018, 12:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB