HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Some Unix Important Commands Please ...
Operating System - HP-UX
1828867
Members
2598
Online
109985
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 08:28 PM
05-01-2002 08:28 PM
Some Unix Important Commands Please ...
Hi,
Can I get some commands like,
-- mv or cp files of or to and same condition with rm (delete).
and can I apply same thing to "rcp"?
-- ls command sorting on "file size", "owner".
Please ....
Thanks & Regards
Syed
Can I get some commands like,
-- mv or cp files of
and can I apply same thing to "rcp"?
-- ls command sorting on "file size", "owner".
Please ....
Thanks & Regards
Syed
Let's share the great thing "THE KNOWLEDGE"
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 08:32 PM
05-01-2002 08:32 PM
Re: Some Unix Important Commands Please ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 09:06 PM
05-01-2002 09:06 PM
Re: Some Unix Important Commands Please ...
Hello,
The previous posting for commands
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x59b5c8ecad09d6118ff40090279cd0f9,00.html
Thanks
G Manikandan
The previous posting for commands
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x59b5c8ecad09d6118ff40090279cd0f9,00.html
Thanks
G Manikandan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 09:34 PM
05-01-2002 09:34 PM
Re: Some Unix Important Commands Please ...
Lets start from the easiest to the hardest .. some simple example is best shown here .. check the man pages for details of the options I used ..
1) Sort file in ls output by file size
# ls -l | sort -k 5,5
2) Sort file in ls output by owner
# ls -l | sort -k 3,3
3) Copy all files dated "Apr 25" (year not taken into account here) to /tmp.
# for file in `ls -l|grep "Apr 25"|awk '{print $9}'
>do
>cp $file /tmp
>done
4) Remove all files dated between Apr25 2002 and Apr29 2002.
# touch 04240101 /tmp/refa
# touch 04290101 /tmp/refb
# find . \( -newer refa -a ! -newer refb \) -exec rm {} \;
5) Copy all files dated between Apr25 2002 and Apr29 2002 to remote machine called "mars" and put them in /tmp. Use the same date reference as in 4.
# (find . -xdev \( -newer refa -a ! -newer refb \) | cpio -coax) | remsh mars "cd /tmp ; cpio -icdmuxla"
Make sure test them thoroughly ..
1) Sort file in ls output by file size
# ls -l | sort -k 5,5
2) Sort file in ls output by owner
# ls -l | sort -k 3,3
3) Copy all files dated "Apr 25" (year not taken into account here) to /tmp.
# for file in `ls -l|grep "Apr 25"|awk '{print $9}'
>do
>cp $file /tmp
>done
4) Remove all files dated between Apr25 2002 and Apr29 2002.
# touch 04240101 /tmp/refa
# touch 04290101 /tmp/refb
# find . \( -newer refa -a ! -newer refb \) -exec rm {} \;
5) Copy all files dated between Apr25 2002 and Apr29 2002 to remote machine called "mars" and put them in /tmp. Use the same date reference as in 4.
# (find . -xdev \( -newer refa -a ! -newer refb \) | cpio -coax) | remsh mars "cd /tmp ; cpio -icdmuxla"
Make sure test them thoroughly ..
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP